Skip to content

Commit

Permalink
change validation rule for permissions column
Browse files Browse the repository at this point in the history
  • Loading branch information
phyothiha committed Dec 13, 2024
1 parent 4fba19b commit 06a2c84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function store()
'name' => 'required',
'permission_type' => 'required',
'description' => 'required',
'permissions' => 'required_unless:permission_type,all',
'permissions' => 'required',
]);

Event::dispatch('user.role.create.before');
Expand Down

0 comments on commit 06a2c84

Please sign in to comment.