Closed howdu closed 1 year ago
One quick solution is to define a gate inside AuthServiceProvider.php
Gate::define('view_themes', function (\App\Models\User $user) {
return $user->isAdmin();
});
Thanks we went with a different solution so unable to test that now.
auth()->user()->can('view_themes')
is always turning false.