From 607c9114af46ce0e6d256e9738f8dffd388b5a90 Mon Sep 17 00:00:00 2001 From: Naser moghbel Date: Mon, 2 Mar 2026 15:51:58 +0330 Subject: [PATCH] NASER dynamic register for customers --- app/Http/Controllers/Auth/AuthController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/Auth/AuthController.php b/app/Http/Controllers/Auth/AuthController.php index 2c6c8f1..9114cfb 100644 --- a/app/Http/Controllers/Auth/AuthController.php +++ b/app/Http/Controllers/Auth/AuthController.php @@ -120,7 +120,9 @@ class AuthController extends Controller public function register(Request $request) { - + if($this->Config('open_register') === 'false'){ + throw new UnprocessableEntityHttpException('امکان ثبتنام وجود ندارد.'); + } $data = $request->all(); $data['type'] = 2; if (isset($data['referral_id'])) {