PHP 클래스 App\Repositories\TagRepository

상속: extends Prettus\Repository\Eloquent\BaseRepository
파일 보기 프로젝트 열기: forehalo/materialize-blog 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$model app\models\Tag Tag Model object.

공개 메소드들

메소드 설명
__construct ( Tag $tag ) TagRepository constructor.
all ( ) : mixed Get all tags
getById ( $id ) : mixed Get tag by id.

메소드 상세

__construct() 공개 메소드

TagRepository constructor.
public __construct ( Tag $tag )
$tag app\models\Tag

all() 공개 메소드

Get all tags
public all ( ) : mixed
리턴 mixed

getById() 공개 메소드

Get tag by id.
public getById ( $id ) : mixed
$id
리턴 mixed

프로퍼티 상세

$model 보호되어 있는 프로퍼티

Tag Model object.
protected Tag,App\Models $model
리턴 app\models\Tag