From f5218f89cde0864c9c63cd1b8aa8d8a97fc14a17 Mon Sep 17 00:00:00 2001 From: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> Date: Sun, 30 Oct 2022 11:42:38 +0000 Subject: [PATCH] Allow whitespace in API resource name Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com> --- models/Resource.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/Resource.php b/models/Resource.php index cad0c4d..27ac20e 100644 --- a/models/Resource.php +++ b/models/Resource.php @@ -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',