From 55bf541cf49177ffd8af10979c5fce48885c9786 Mon Sep 17 00:00:00 2001 From: Alexandr Khokhanov <63554058+overclocked555@users.noreply.github.com> Date: Tue, 23 Apr 2024 15:50:20 +0300 Subject: [PATCH] fix table name in unique rule in permission controller --- 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', ]);