laravel get records from database and store in cookie code example Example: session in laravel session()->regenerate();