| 1 | <?php namespace Arcanesoft\Auth\Policies; | ||
| 11 | class DashboardPolicy extends Policy | ||
| 12 | { | ||
| 13 | /* ------------------------------------------------------------------------------------------------ | ||
| 14 | | Constants | ||
| 15 | | ------------------------------------------------------------------------------------------------ | ||
| 16 | */ | ||
| 17 | const PERMISSION_STATS = 'auth.dashboard.stats'; | ||
| 18 | |||
| 19 | /* ------------------------------------------------------------------------------------------------ | ||
| 20 | | Getters and Setters | ||
| 21 | | ------------------------------------------------------------------------------------------------ | ||
| 22 | */ | ||
| 23 | /** | ||
| 24 | * Get the policies. | ||
| 25 | * | ||
| 26 | * @return array | ||
| 27 | */ | ||
| 28 | public static function getPolicies() | ||
| 34 | |||
| 35 | /* ------------------------------------------------------------------------------------------------ | ||
| 36 | | Policies Functions | ||
| 37 | | ------------------------------------------------------------------------------------------------ | ||
| 38 | */ | ||
| 39 | /** | ||
| 40 | * Allow to access all the auth stats. | ||
| 41 | * | ||
| 42 | * @param \Arcanesoft\Contracts\Auth\Models\User $user | ||
| 43 | * | ||
| 44 | * @return bool | ||
| 45 | */ | ||
| 46 | public function statsPolicy(User $user) | ||
| 50 | } | ||
| 51 |