Loading…

How to use cookies in laravel?

1. For set cookie Value we have to use Cookie::put('key', 'value');

2. For get cookie Value we have to use Cookie::get('key');

3. For remove cookie Value we have to use Cookie::forget('key')

4. For Check cookie is exists or not, we have to use Cache::has('key')

Suggest An Answer

No suggestions avaliable!

Latest post from Laravel Interview Questions

Ask Question