add dd to troubleshoot email sending
This commit is contained in:
@@ -66,7 +66,13 @@ class LoginController extends Controller
|
||||
]);
|
||||
\Log::info($otp);
|
||||
|
||||
Mail::to($staff->email)->send(new LoginOtpMail($otp));
|
||||
// Mail::to($staff->email)->send(new LoginOtpMail($otp));
|
||||
|
||||
try {
|
||||
Mail::to($staff->email)->send(new LoginOtpMail($otp));
|
||||
} catch (\Exception $e) {
|
||||
dd($e->getMessage());
|
||||
}
|
||||
|
||||
session(['otp_staff_id' => $staff->id]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user