Support the ongoing development of Laravel.io →
Authentication
Last updated 2 years ago.
0

My idea:

Route::group(['before'=>'auth'], function()
{
  Route::group(['before'=>'group_auth:foo'], function()
  {
    // only users with group: foo
  });
  
  Route::group(['before'=>'group_auth:bar'], function()
  {
    // only users with group: bar
  });
});
  • general auth filter: auth
  • group auth filter: group_auth
Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Fortidude fortidude Joined 13 Oct 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.