PHP Класс Yab\Quarx\Repositories\BlogRepository

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

all() публичный Метод

Returns all Blogs.
public all ( ) : Illuminate\Database\Eloquent\Collection | static[]
Результат Illuminate\Database\Eloquent\Collection | static[]

allTags() публичный Метод

public allTags ( )

findBlogById() публичный Метод

Find Blog by given id.
public findBlogById ( integer $id ) : Collection | null | static | Blog
$id integer
Результат Illuminate\Support\Collection | null | static | Yab\Quarx\Models\Blog

findBlogsByTag() публичный Метод

Find Blogs by given Tag.
public findBlogsByTag ( string $tag ) : Collection | null | static | Pages
$tag string
Результат Illuminate\Support\Collection | null | static | Pages

findBlogsByURL() публичный Метод

Find Blog by given URL.
public findBlogsByURL ( string $url ) : Collection | null | static | Pages
$url string
Результат Illuminate\Support\Collection | null | static | Pages

paginated() публичный Метод

public paginated ( )

published() публичный Метод

public published ( )

publishedAndPaginated() публичный Метод

store() публичный Метод

Stores Blog into database.
public store ( array $input ) : Blog
$input array
Результат Yab\Quarx\Models\Blog

tags() публичный Метод

public tags ( $tag )

update() публичный Метод

Updates Blog into database.
public update ( Blog $blog, array $input ) : Blog
$blog Yab\Quarx\Models\Blog
$input array
Результат Yab\Quarx\Models\Blog