PHP Class App\Repositories\TagRepository

Inheritance: extends Prettus\Repository\Eloquent\BaseRepository
Afficher le fichier Open project: forehalo/materialize-blog Class Usage Examples

Protected Properties

Свойство Type Description
$model app\models\Tag Tag Model object.

Méthodes publiques

Méthode Description
__construct ( Tag $tag ) TagRepository constructor.
all ( ) : mixed Get all tags
getById ( $id ) : mixed Get tag by id.

Method Details

__construct() public méthode

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

all() public méthode

Get all tags
public all ( ) : mixed
Résultat mixed

getById() public méthode

Get tag by id.
public getById ( $id ) : mixed
$id
Résultat mixed

Property Details

$model protected_oe property

Tag Model object.
protected Tag,App\Models $model
Résultat app\models\Tag