Skip to content

Commit

Permalink
Support spatie/laravel-permission v5.5.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
potsky authored Oct 20, 2022
1 parent 3cdfd6d commit 4892b2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function fields(NovaRequest $request)
return [$key => $key];
});

$userResource = Nova::resourceForModel(getModelForGuard($this->guard_name));
$userResource = Nova::resourceForModel(getModelForGuard($this->guard_name ?? config('auth.defaults.guard')));

return [
ID::make()->sortable(),
Expand Down

0 comments on commit 4892b2d

Please sign in to comment.