1 | <?php namespace Arcanesoft\Auth\ViewComposers; |
||
14 | class PermissionGroupsFilterComposer extends ViewComposer |
||
15 | { |
||
16 | /* ------------------------------------------------------------------------------------------------ |
||
17 | | Constant |
||
18 | | ------------------------------------------------------------------------------------------------ |
||
19 | */ |
||
20 | const VIEW = 'auth::admin._composers.permission-groups-filter'; |
||
21 | |||
22 | /* ------------------------------------------------------------------------------------------------ |
||
23 | | Main Functions |
||
24 | | ------------------------------------------------------------------------------------------------ |
||
25 | */ |
||
26 | /** |
||
27 | * Compose the view. |
||
28 | * |
||
29 | * @param \Illuminate\Contracts\View\View $view |
||
30 | */ |
||
31 | public function compose(View $view) |
||
35 | |||
36 | /* ------------------------------------------------------------------------------------------------ |
||
37 | | Other Functions |
||
38 | | ------------------------------------------------------------------------------------------------ |
||
39 | */ |
||
40 | /** |
||
41 | * Get the groups filters data. |
||
42 | * |
||
43 | * @return \Illuminate\Support\Collection |
||
44 | */ |
||
45 | private function getFilters() |
||
68 | |||
69 | /** |
||
70 | * Get the cached permission groups. |
||
71 | * |
||
72 | * @return \Illuminate\Database\Eloquent\Collection |
||
73 | */ |
||
74 | private function getCachedPermissionGroups() |
||
80 | } |
||
81 |