laravel global session variable code example
Example 1: import session laravel
use Illuminate\Support\Facades\Session;
Example 2: session laravel
session(['name' => 'data']);
use Illuminate\Support\Facades\Session;
session(['name' => 'data']);