Skip to content

Commit

Permalink
REgexp fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alexvenga committed Dec 11, 2022
1 parent 37a821c commit 8a82ac5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LaravelSiteSettingGroupResource extends Resource
public function rules(Model $item): array
{
return [
'slug' => 'required|max:190|regex:/^([a-z0-9\-])$/i|unique:laravel_site_setting_groups,slug,' . $item->getKey(),
'slug' => 'required|max:190|regex:/^([a-z0-9\-]+)$/i|unique:laravel_site_setting_groups,slug,' . $item->getKey(),
'name' => 'nullable|max:190',
];
}
Expand Down

0 comments on commit 8a82ac5

Please sign in to comment.