Welcome Guest, Not a member yet? Register   Sign In
Routes and Placeholders
#4

(This post was last modified: 05-21-2021, 12:37 PM by InsiteFX.)

Restricting Route Groups
In the same way, entire groups of routes can be restricted within the 

PHP Code:
$routes->group('admin', ['filter' => 'role:admin,superadmin'], function($routes) {
    ...
}); 

I'm not sure were you are getting your values from but that's how Myth/Auth shows it.

And the filters are these:

PHP Code:
'login'      => \Myth\Auth\Filters\LoginFilter::class,
'role'       => \Myth\Auth\Filters\RoleFilter::class,
'permission' => \Myth\Auth\Filters\PermissionFilter::class, 

There has been a few updates to Myth/Auth maybe download it again.

UPDATE: I just checked and Myth/Auth was updated again 7 hours ago.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Messages In This Thread
Routes and Placeholders - by p.mancini - 05-21-2021, 03:46 AM
RE: Routes and Placeholders - by InsiteFX - 05-21-2021, 04:33 AM
RE: Routes and Placeholders - by p.mancini - 05-21-2021, 05:19 AM
RE: Routes and Placeholders - by InsiteFX - 05-21-2021, 12:26 PM
RE: Routes and Placeholders - by p.mancini - 05-22-2021, 08:36 AM
RE: Routes and Placeholders - by InsiteFX - 05-22-2021, 08:47 PM



Theme © iAndrew 2016 - Forum software by © MyBB