laravel database session example Example 1: session laravel session(['name' => 'data']); Example 2: session in laravel session()->regenerate();