| 1 | <?php |
||
| 8 | class EloquentRepository extends RepositoryAbstract implements Repository |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Get all published navigation. |
||
| 12 | * |
||
| 13 | * @return \Illuminate\Database\Eloquent\Collection|static[] |
||
| 14 | */ |
||
| 15 | public function getPublished() |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Get repository model. |
||
| 27 | * |
||
| 28 | * @return \Illuminate\Database\Eloquent\Model|\Illuminate\Database\Eloquent\Builder |
||
| 29 | */ |
||
| 30 | public function getModel() |
||
| 34 | |||
| 35 | /** |
||
| 36 | * Find or fail a navigation. |
||
| 37 | * |
||
| 38 | * @param int $id |
||
| 39 | * @return \Yajra\CMS\Entities\Navigation |
||
| 40 | */ |
||
| 41 | public function findOrFail($id) |
||
| 45 | } |
||
| 46 |