app/Http/Controllers/Admin/Auth/AdminAuthController.php
/**
     * Show the application loginprocess.
     *
     * @return \Illuminate\Http\Response
     */
Show the application loginprocess.
@return \Illuminate\Http\Response
Show the application loginprocess . @return \ Illuminate \ Http \ Response
public function postLogin(Request $request)
    {
        $this->validate($request, [
            'email' => 'required|email',
            'password' => 'required',
        ]);
        if (Auth::guard('admin')->attempt([
            'email' => $request->input('email'),
            'password' => $request->input('password')
        ], $request->remember_me)) {
            return redirect()->route('admin.dashboard')->with('success', 'You are Login successfully!!');
        } else {
            return redirect()->back()->with('error', 'your username and password are wrong.');
        }
    }
public function postLogin ( Request $ request ) { $ this -> validate ( $ request , [ 'email' => 'required|email' , 'password' => 'required' , ] ) ; if ( Auth :: guard ( 'admin' ) -> attempt ( [ 'email' => $ request -> input ( 'email' ) , 'password' => $ request -> input ( 'password' ) ] , $ request -> remember_me ) ) { return redirect ( ) -> route ( 'admin.dashboard' ) -> with ( 'success' , 'You are Login successfully!!' ) ; } else { return redirect ( ) -> back ( ) -> with ( 'error' , 'your username and password are wrong.' ) ; } }
Show the application loginprocess.
Show the application loginprocess .