PHP Class Yab\Quarx\Repositories\BlogRepository

Exibir arquivo Open project: YABhq/Quarx Class Usage Examples

Public Methods

Method 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 method

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

allTags() public method

public allTags ( )

findBlogById() public method

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

findBlogsByTag() public method

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

findBlogsByURL() public method

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

paginated() public method

public paginated ( )

published() public method

public published ( )

publishedAndPaginated() public method

store() public method

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

tags() public method

public tags ( $tag )

update() public method

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