How to use session in laravel?
1. Retrieving Data from session
session()->get('key');
2. Retrieving All session data
session()->all();
3. Remove data from session
session()->forget('key'); or session()->flush();
4. Storing Data in session
session()->put('key', 'value');
BY Best Interview Question ON 06 May 2020