Skip to main content

Search Results for "gates"

We found 8 results for "gates".

Tutorial 2 min read Free

Laravel SuperAdmin: Override All the Gates

If you use Gates in the Laravel project for roles/permissions, you can add one condition to override any gates, making a specific user a super-admin. Here's how.

Code Example agorakit/agorakit

agorakit/agorakit

Files in the example:

  • app/Policies/UserPolicy.php
  • app/Providers/AuthServiceProvider.php
  • app/Http/Controllers/Auth/RegisterController.php

Code Example area17/twill

area17/twill

Files in the example:

  • src/AuthServiceProvider.php
  • src/Http/Controllers/Admin/ModuleController.php