laravel set session data code example
Example 1: import session laravel
use Illuminate\Support\Facades\Session;
Example 2: session flash
session()->flash('key', 'value');
use Illuminate\Support\Facades\Session;
session()->flash('key', 'value');