From 85f319878ad2444efe6539f263e2b7da87f9d0d9 Mon Sep 17 00:00:00 2001 From: R Date: Thu, 19 Jan 2023 10:09:53 +0700 Subject: [PATCH] Fix Regex Kode Corporate --- .../Internal/Http/Controllers/Api/CorporateController.php | 4 ++-- frontend/client-portal/.htaccess | 8 ++++++++ frontend/dashboard/.htaccess | 5 ++++- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Modules/Internal/Http/Controllers/Api/CorporateController.php b/Modules/Internal/Http/Controllers/Api/CorporateController.php index 691cf576..df8e1421 100755 --- a/Modules/Internal/Http/Controllers/Api/CorporateController.php +++ b/Modules/Internal/Http/Controllers/Api/CorporateController.php @@ -78,7 +78,7 @@ class CorporateController extends Controller public function store(Request $request) { $request->validate([ - 'code' => 'required|regex:/^[a-zA-Z0-9 ]+$/', + 'code' => 'required|regex:/^[a-zA-Z0-9]+$/', 'name' => 'required', // 'logo' => 'required', 'policy_code' => 'required_with:policy_id', @@ -295,7 +295,7 @@ class CorporateController extends Controller public function update(Request $request, $id) { $request->validate([ - 'code' => 'required|regex:/^[a-zA-Z0-9 ]+$/', + 'code' => 'required|regex:/^[a-zA-Z0-9]+$/', 'name' => 'required', 'policy_code' => 'required_with:policy_id', 'policy_total_premi' => 'required_with:policy_code', diff --git a/frontend/client-portal/.htaccess b/frontend/client-portal/.htaccess index 031b568c..5dd2006d 100755 --- a/frontend/client-portal/.htaccess +++ b/frontend/client-portal/.htaccess @@ -1,4 +1,12 @@ + RewriteEngine On RewriteBase / + RewriteCond %{REQUEST_FILENAME} !-f + RewriteCond %{REQUEST_FILENAME} !-d + RewriteRule (.*) /index.html [QSA,L] + + + ModPagespeed off + \ No newline at end of file diff --git a/frontend/dashboard/.htaccess b/frontend/dashboard/.htaccess index 0272d528..5dd2006d 100755 --- a/frontend/dashboard/.htaccess +++ b/frontend/dashboard/.htaccess @@ -1,5 +1,4 @@ - Modpagespeed Off RewriteEngine On RewriteBase / @@ -7,3 +6,7 @@ RewriteCond %{REQUEST_FILENAME} !-d RewriteRule (.*) /index.html [QSA,L] + + + ModPagespeed off + \ No newline at end of file