Laravel 5.2: Flash values in session gone after redirect
<p>I use Laracasts Flash package to display flash messages to my users. But theres a problem: flash values are gone after one redirect. Values wich I set with <code>Session::set();</code> are still there. I use the web-middleware on every controller and it even includes the <code>StartSession</code> class.
Even redirects<code>-&gt;withInput</code> are gone after the redirect.</p>

<p>Here's my controller:</p>

<pre><code>public function update(Request $request) {
    $profile = Auth::user()-&gt;profile;

    $validator = Validator::make($request-&gt;all(), [
        'email' =&gt; ['email', 'unique:profiles,email,' . $profile-&gt;id, 'max:255'],
    ]);

    if($validator-&gt;fails()) {
        var_dump("failed");
        return redirect()-&gt;back()-&gt;withInput($request-&gt;input())-&gt;withErrors($validator);
    }

    $profile-&gt;update($request-&gt;input());
    $profile-&gt;save();

    Flash::success('saved');
    \Session::set('test', 'testvalue');
    return redirect()-&gt;route('profile.edit');
}
</code></pre>

<p>Heres the method where I try to get the value:</p>

<pre><code>public function edit() {
    $account = Auth::user();

    var_dump(\Session::all());
    return view('profile.edit', [
        'account' =&gt; $account,
        'profile' =&gt; $account-&gt;profile,
    ]);
}
</code></pre>

<p>The <code>testvalue</code> still exists but the flash message is gone. Even if I try to set them myself with <code>Session::flash();</code></p>

<p>Any idea what to do?</p>