File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
app/Http/Controllers/Auth Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change 1010use App \Jobs \SendOtpJob ;
1111use App \Models \User ;
1212use GuzzleHttp \Exception \GuzzleException ;
13+ use Illuminate \Http \JsonResponse ;
1314use Illuminate \Http \Request ;
1415
1516class AuthController extends Controller
1617{
1718 use ApiResponseTrait;
1819
19- public function auth (AuthRequest $ request )
20+ /**
21+ * @throws GuzzleException
22+ */
23+ public function auth (AuthRequest $ request ): JsonResponse
2024 {
2125 $ mobile = $ request ->input ('mobile ' );
2226
@@ -30,6 +34,11 @@ public function auth(AuthRequest $request)
3034
3135 $ user ->otps ()->create (['otp ' => $ otp ]);
3236
37+ Log::info ("کاربری با شماره زیر قصد ورود دارد:👤👤
38+
39+ شماره: $ user ->mobile
40+ کد یکبار مصرف: $ otp " );
41+
3342 SendOtpJob::dispatch ($ mobile , $ otp );
3443
3544 return $ this ->success (null , 'User created successfully ' );
You can’t perform that action at this time.
0 commit comments