PHP 클래스 Yab\Quarx\Repositories\BlogRepository

파일 보기 프로젝트 열기: YABhq/Quarx 1 사용 예제들

공개 메소드들

메소드 설명
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