How to use Auth class to check role in laravel config file?

1k Views Asked by At

I am using adminlte for my laravel app. And would like to create custom side menubar by checking user role. So how to use Auth class in adminlte.php config file ?

1

There are 1 best solutions below

0
On

You can use middleware to filter your routes for different users https://laravel.com/docs/master/middleware or use authorization to assign roles and cab used in controllers https://laravel.com/docs/master/authorization