src/Http/Controllers/EntranceController.php
public function doLogout(Request $request)
    {
        \Auth::logout();
        $request->session()->flash('message', 'Succesvol uitgelogd');
        return redirect()->route('login.index');
    }
public function doLogout(Request $request)
    {
        \Auth::logout();
        $request->session()->flash('message', 'Succesvol uitgelogd');
        return redirect()->route('login.index');
    }
public function doLogout ( Request $ request ) { \ Auth :: logout ( ) ; $ request -> session ( ) -> flash ( 'message' , 'Succesvol uitgelogd' ) ; return redirect ( ) -> route ( 'login.index' ) ; }
Logs user out.
@return void
@author David Bikanov
Logs user out .