PHP Class Yab\Quarx\Repositories\BlogRepository

Afficher le fichier Open project: YABhq/Quarx Class Usage Examples

Méthodes publiques

Méthode Description
all ( ) : Illuminate\Database\Eloquent\Collection | static[] Returns all Blogs.
allTags ( )
findBlogById ( integer $id ) : Collection | null | static | Blog Find Blog by given id.
findBlogsByTag ( string $tag ) : Collection | null | static | Pages Find Blogs by given Tag.
findBlogsByURL ( string $url ) : Collection | null | static | Pages Find Blog by given URL.
paginated ( )
published ( )
publishedAndPaginated ( )
search ( $input )
store ( array $input ) : Blog Stores Blog into database.
tags ( $tag )
update ( Blog $blog, array $input ) : Blog Updates Blog into database.

Method Details

all() public méthode

Returns all Blogs.
public all ( ) : Illuminate\Database\Eloquent\Collection | static[]
Résultat Illuminate\Database\Eloquent\Collection | static[]

allTags() public méthode

public allTags ( )

findBlogById() public méthode

Find Blog by given id.
public findBlogById ( integer $id ) : Collection | null | static | Blog
$id integer
Résultat Illuminate\Support\Collection | null | static | Yab\Quarx\Models\Blog

findBlogsByTag() public méthode

Find Blogs by given Tag.
public findBlogsByTag ( string $tag ) : Collection | null | static | Pages
$tag string
Résultat Illuminate\Support\Collection | null | static | Pages

findBlogsByURL() public méthode

Find Blog by given URL.
public findBlogsByURL ( string $url ) : Collection | null | static | Pages
$url string
Résultat Illuminate\Support\Collection | null | static | Pages

paginated() public méthode

public paginated ( )

published() public méthode

public published ( )

publishedAndPaginated() public méthode

store() public méthode

Stores Blog into database.
public store ( array $input ) : Blog
$input array
Résultat Yab\Quarx\Models\Blog

tags() public méthode

public tags ( $tag )

update() public méthode

Updates Blog into database.
public update ( Blog $blog, array $input ) : Blog
$blog Yab\Quarx\Models\Blog
$input array
Résultat Yab\Quarx\Models\Blog