title: How can I logout user after delete with Laravel?
body: <p>What is the correct way to logout user after I delete his data in Laravel? I would not like to delete him before, in case of delete process goes with errors. </p>
  
  <p>When I am having this code:</p>
  
  <pre><code>    if($this-&gt;userManipulator-&gt;softDeleteUser(Auth::user())){
          Auth::logout();
          return redirect(url('login'));
      }
  </code></pre>
  
  <p>it works fine in the app, but does not work correctly during testing. </p>