Step 1. Create route

We are required only one route to call controller.

Route::get('logout', [
    'as'    => 'logout',
    'uses'  => 'SigninController@Logoutuser'
]);

 

How to Create Authentication Login in Laravel 5

Step 2. SigninController with Logoutuser function

We will first need to import the Auth namespace.

use Illuminate\Support\Facades\Auth;

In this step authentication destroy.

public function Logoutuser()
{
    Auth::logout();
    return redirect('login');
}
How to Create Authentication Login in Laravel 5