title: Error return redirect with session flash on laravel
body: <p>Can anyone tell me a question (I'm still a newbie)
  I get an error when I return redirect, I can't save the flash session :(
  (It's okay to return view.)
  I only get this error when I'm in the applicant section, but on the admin side, I use it normally (the web has 2 parts, admin (route admin) and applicant (web route) )
  I am using Laravel version 8.x
  Here is my code :</p>
  <pre><code>return redirect()-&gt;route('index')-&gt;with('error','error ');
  return redirect()-&gt;back()-&gt;with('errors','error');
  </code></pre>