Policy.php 308 B

12345678910111213141516171819202122
  1. <?php
  2. namespace App\Policies;
  3. use Illuminate\Auth\Access\HandlesAuthorization;
  4. class Policy
  5. {
  6. use HandlesAuthorization;
  7. public function __construct()
  8. {
  9. //
  10. }
  11. public function before($user, $ability)
  12. {
  13. // if ($user->isSuperAdmin()) {
  14. // return true;
  15. // }
  16. }
  17. }