Where can i write its logic in my file ? below are my login function.
public function login( Request $request )
{
$this->validate( $request, [
'email' => 'required|email',
'password' => 'required',
]);
if( Auth::guard('employee')->attempt( [
'email' => $request->input( 'email' ),
'password' => $request->input( 'password' ),
'status'=>'Active'
]) ) {
return redirect('/employee/dashboard');
} else {
return view('employee.login')->withErrors( [ 'email' => 'Authentication failed' ] );
}
}
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire