You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.
I am using laravel 5.3, I added the fixes in the pull requests so everything works great. The issue I have is when applying a role middleware to a route.
I am using this: Route::group(['prefix' => 'office', 'middleware' => 'role:admin'], function()
It however throws the above error, here is some more on the error.
at HandleExceptions->handleError('8', 'Trying to get property of non-object', '......./vendor/bican/roles/src/Bican/Roles/Traits/HasRoleAndPermission.php', '104', array('key' => object(Role), 'value' => '0', 'role' => 'admin')) in HasRoleAndPermission.php line 104
Thanks for any help.
The text was updated successfully, but these errors were encountered:
I am using laravel 5.3, I added the fixes in the pull requests so everything works great. The issue I have is when applying a role middleware to a route.
I am using this:
Route::group(['prefix' => 'office', 'middleware' => 'role:admin'], function()
It however throws the above error, here is some more on the error.
at HandleExceptions->handleError('8', 'Trying to get property of non-object', '......./vendor/bican/roles/src/Bican/Roles/Traits/HasRoleAndPermission.php', '104', array('key' => object(Role), 'value' => '0', 'role' => 'admin')) in HasRoleAndPermission.php line 104
Thanks for any help.
The text was updated successfully, but these errors were encountered: