Check if user is admin in wrapper
How would I go about checking for if the user has admin? which way should I do this?
I'm using a wrapper
Solution:Jump to solution
Check if user is signed in
```php
<?php
if(Auth::check()) {
// do something.....
3 Replies
I had tried the way nebula is doing it but that didn't seem to work as
root_admin
doesn't exist (not surprised)Solution
Check if user is signed in
Check if user is admin
Checking root_admin will error out when the user is not signed in, make sure to wrap it inside of an
Auth::check()
check.ah alr, ty :)