Skip to content

Commit

Permalink
Merge pull request #1 from santigarcor/master
Browse files Browse the repository at this point in the history
fix table name in unique rule in permission controller (santigarcor#673)
  • Loading branch information
majortom731 authored May 27, 2024
2 parents 9510e60 + aa43d35 commit 1f21a81
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 1f21a81

Please sign in to comment.