app/Http/Controllers/Auth/AuthenticatedSessionController.php
/**
     * Handle an incoming authentication request.
     *
     * @param  \App\Http\Requests\Auth\LoginRequest  $request
     * @return \Illuminate\Http\RedirectResponse
     */
Handle an incoming authentication request.
Handle an incoming authentication request .
public function store(LoginRequest $request)
    {
        $request->authenticate();
        $request->session()->regenerate();
        return redirect()->intended('user');
    }
public function store ( LoginRequest $ request ) { $ request -> authenticate ( ) ; $ request -> session ( ) -> regenerate ( ) ; return redirect ( ) -> intended ( 'user' ) ; }
Handle an incoming authentication request.
Handle an incoming authentication request .
// return view('beranda');