Skip to main content

Black Friday 2025! Only until December 1st: coupon FRIDAY25 for 40% off Yearly/Lifetime membership!

Read more here

Code Examples of gates

Discover how to use Laravel's gates method in real-world applications. Browse 5 examples from popular open-source projects.

5 examples

area17/twill

  • 3925
  • Created Jun 2018
  • Updated Nov 2025

Files in this example

  • src/AuthServiceProvider.php
    • src/Http/Controllers/Admin/ModuleController.php
View full example

agorakit/agorakit

  • 434
  • Created May 2016
  • Updated Nov 2025

Files in this example

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

academico-sis/academico

  • 338
  • Created Dec 2018
  • Updated Nov 2025

Files in this example

  • app/Providers/AuthServiceProvider.php
    • app/Http/Controllers/GradeController.php
View full example

jcergolj/laravellte

  • 216
  • Created Jan 2020
  • Updated Feb 2023

Files in this example

  • app/Services/ForRouteGate.php
    • app/Providers/AuthServiceProvider.php
      • app/Http/Middleware/Authorization.php
View full example

Astrotomic/opendor.me

  • 79
  • Created May 2021
  • Updated Aug 2024

Files in this example

  • app/Providers/AuthServiceProvider.php
    • resources/views/components/user-dropdown.blade.php
View full example

We'd Love Your Feedback

Tell us what you like or what we can improve

Feel free to share anything you like or dislike about this page or the platform in general.