Skip to content

Commit

Permalink
Allow whitespace in API resource name
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <[email protected]>
  • Loading branch information
sampoyigi committed Oct 30, 2022
1 parent 0d57ad6 commit f5218f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/Resource.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Resource extends Model
];

protected $rules = [
'name' => 'required|min:2|max:128|alpha_dash',
'name' => 'required|min:2|max:128|string',
'description' => 'required|min:2|max:255',
'endpoint' => 'max:255|regex:/^[a-z0-9\-_\/]+$/i|unique:igniter_api_resources,endpoint',
'controller' => 'required|min:2|max:255',
Expand Down

0 comments on commit f5218f8

Please sign in to comment.