I already create login function successfully, but the logout function it doesnt work!!! this is my code
logout in blade =>
<a href="{{ action('Auth\LoginController@getLogout')}}"> logout</a>
logout in Auth\LoginController.php=>
public function getLogout(){
return redirect('login')->with(Auth::logout());
}
when i press the logout button, the browser will auto turn back to the home page.
In my code, it should be turn back to the login page, and it also not logout successfully.
Therefore, this function getLogout() it doesnt work!!!!
Have anyone know that? why it always turn the page to the Home ?