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', ]);