PHP Class App\Repositories\TagRepository

Inheritance: extends Prettus\Repository\Eloquent\BaseRepository
Datei anzeigen Open project: forehalo/materialize-blog Class Usage Examples

Protected Properties

Property Type Description
$model app\models\Tag Tag Model object.

Public Methods

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

Method Details

__construct() public method

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

all() public method

Get all tags
public all ( ) : mixed
return mixed

getById() public method

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

Property Details

$model protected_oe property

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