Skip to content

Commit

Permalink
[Merge] update: Support spatie/laravel-permission v5.5.9+
Browse files Browse the repository at this point in the history
  • Loading branch information
kiritokatklian authored Oct 20, 2022
2 parents 6ffcd75 + 4892b2d commit bea9420
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 bea9420

Please sign in to comment.