Answer Posted / rajani
Once we set the cookie, we can retrieve the cookie by cookie() method.
This cookie() method will take only one argument which will be the name of the cookie.
The cookie method can be called by using the instance of IlluminateHttpRequest.
Here is a sample code with explanation.
//’name’ is the name of the cookie to retrieve the value of
$value = $request->cookie('name');
Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is middleware in laravel?
what is Blade ?
What is meant by Laravel - Ajax ?
What is the use of in laravel?
How will you explain events in laravel?
What does orm stand for?
Do you know what is http middleware?
How to install and start, stop mysql on valet?
List out some artisan commands?
What is design pattern in laravel?
Tell me what are the official packages provided by laravel?
What is meant by Attaching Headers ?
What do you understand by reverse routing?
what is meant by CSRF Protection in Laravel ?
Is any server permissions required for laravel?