public function __construct()
{
$this->middleware(['role_or_permission:{auth()->user()->role->permissions}']);
}
I mean if I could separate the roles and put them directly for the logged in user and make a class to extend them to not put manually for each
For example, to inherit this from the Controller function and extend them to each controller separately