What do you mean by automation? You want to release the user and redirect him, right? You can redirect and blink a message at the same time, which makes sense in this scenario.
Route::get('log_out', function () {
return redirect('log_in')->with('status', 'You have signed out!');
});
More here
source
share