Skip to main content
Fortify

JetStream Fortify check if the user belongs to a specific role or is active while logging in

This guide is helpful. // JetstreamServiceProvider.php Fortify::authenticateUsing(function (Request $request) { $user = User::where('email', $request->email)->whereFileNumber($request->fileNumber)->userActive()->role('Debtor')->first(); if ($user && Hash::check($request->password, $user->password)) { $userLoginDetailObj = new UserLoginDetail(); $userLoginDetailObj->loginDetails($user->id);…
priyankmaniar
April 4, 2021
LaravelMail

Laravel Mail

Mail Listener We can listen to the mail send event. How to pass custom parameters to a Mail Listener? The handle method of the listener…
priyankmaniar
January 5, 2021