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
I can use @role('admin') in templates, but when a access current user by Auth::User() method, it returns Null, how can I access it, and use $user->hasRole('writer') in a CrudController ?
The text was updated successfully, but these errors were encountered:
Starting with Backpack\CRUD 3.1.24 you should be able to rename your __construct() into setup() and be able to use that.
P.S. I'll go ahead and close this issue so we don't clog the section. Feel free to open it again if you encounter problems or comment if you have follow-ups.
I can use
@role('admin')
in templates, but when a access current user byAuth::User()
method, it returns Null, how can I access it, and use$user->hasRole('writer')
in a CrudController ?The text was updated successfully, but these errors were encountered: