bitfumes / laravel-multiauth

Multi Auth and admin auth in Laravel Project
MIT License
471 stars 104 forks source link

Guard intefering with horizon #130

Open Sadicko opened 4 years ago

Sadicko commented 4 years ago

I get below error when using horizon with multi-auth. It makes horizon dashboard inaccessible.

I set the $user to null in the horizon gate but still interfering.

Call to a member function pluck() on null

` protected function isSuperAdmin($admin) { return in_array('super', $admin->roles->pluck('name')->toArray()); }

}`