<?php
Route::get('/', function() {
// set session
session(['name' => 'John Doe']);
// use/call a session
session('name');
// return session variable (also has a default value just in case)
return session('name', 'A Default Value');
// delete a session
session()->forget('name');
return view('welcome');
});