| 1 | <?php namespace Anomaly\DashboardModule\Dashboard; |
||
| 14 | class DashboardRepository extends EntryRepository implements DashboardRepositoryInterface |
||
| 15 | { |
||
| 16 | |||
| 17 | /** |
||
| 18 | * The entry model. |
||
| 19 | * |
||
| 20 | * @var DashboardModel |
||
| 21 | */ |
||
| 22 | protected $model; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * Create a new DashboardRepository instance. |
||
| 26 | * |
||
| 27 | * @param DashboardModel $model |
||
| 28 | */ |
||
| 29 | public function __construct(DashboardModel $model) |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Return only allowed dashboards. |
||
| 36 | * |
||
| 37 | * @return DashboardCollection |
||
| 38 | */ |
||
| 39 | public function allowed() |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Find a dashboard by it's slug. |
||
| 46 | * |
||
| 47 | * @param $slug |
||
| 48 | * @return null|DashboardInterface |
||
| 49 | */ |
||
| 50 | public function findBySlug($slug) |
||
| 54 | } |
||
| 55 |