From aa43d35e4285af30a52eff6dbbe9a2e81adeaa6a Mon Sep 17 00:00:00 2001 From: Alexandr Khokhanov <63554058+overclocked555@users.noreply.github.com> Date: Fri, 26 Apr 2024 18:27:05 +0300 Subject: [PATCH] fix table name in unique rule in permission controller (#673) --- src/Http/Controllers/PermissionsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/PermissionsController.php b/src/Http/Controllers/PermissionsController.php index 9a9a5c14..8f417eec 100644 --- a/src/Http/Controllers/PermissionsController.php +++ b/src/Http/Controllers/PermissionsController.php @@ -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', ]);