Hi!
I was following the screencast https://laracasts.com/series/laravel-5-from-scratch/episodes/15 and the I noticed it was from mars 14th.
Went over to the docs https://laravel.com/docs/5.3/session and tried to follow along with the docs on how to set up some session flashing.
Ran the command php artisan session:table and got myself a migration.
I flash to the session with $request->session()->flash('status', 'Task was successful!');
I can retrieve the flash with
@if(Session::has('status'))
<div class="alert">
{{ Session::get('status') }}
</div>
I can see in the table that I have a flash in the sessions table. But I thought that it would disappear from the table. According to the docs
Sometimes you may wish to store items in the session only for the next request. You may do so using the flash method. Data stored in the session using this method will only be available during the subsequent HTTP request, and then will be deleted. Flash data is primarily useful for short-lived status messages:
So how do I properly use the session flash with Laravel 5.3?