new laravel session code example Example 1: set session in laravel Session::get('variableName'); Example 2: session laravel session(['name' => 'data']);