use IlluminateSupportFacadesSession;
Session::flash('message','This is a message!');
then in your view::
@if(Session::has('message'))
<p class="alert
{{ Session::get('alert-class', 'alert-info') }}">{{Session::get('message') }}</p>
@endif
// Via a request instance...
$request->session()->put('key', 'value');
// Via the global "session" helper...
session(['key' => 'value']);
php artisan session:table
'for make session: syntax: session(key => value), ex. session('user1'=>'kinjal')
session can remove using forget() perticular user; syntax: session().forget(key);
To delete all users from session: syntax: session()->flush();
To fetch all session data: syntax: session()->all();