Skip to content

Commit

Permalink
fix table name in unique rule in permission controller (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
overclocked555 authored Apr 26, 2024
1 parent 9510e60 commit aa43d35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/PermissionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function create()
public function store(Request $request)
{
$data = $request->validate([
'name' => 'required|string|unique:'.config('laratrust.tables.roles', 'roles').',name',
'name' => 'required|string|unique:'.config('laratrust.tables.permissions', 'permissions').',name',
'display_name' => 'nullable|string',
'description' => 'nullable|string',
]);
Expand Down

0 comments on commit aa43d35

Please sign in to comment.