It returns me role instead of return true or false.
Also i want to know one more thing that how exactely Auth::user()->hasRole() is working?
Is it compare user role with existing role in my database? If yes than how?
And let me know how to do this stuff in laravel controller? I know the thing but need to confirm.
Hello there,
I am using this plugin in laravel, when i put this condition in laravel controller
It returns me role instead of return true or false. Also i want to know one more thing that how exactely Auth::user()->hasRole() is working? Is it compare user role with existing role in my database? If yes than how? And let me know how to do this stuff in laravel controller? I know the thing but need to confirm.