This code snippet sets a cookie named ‘name’ with a value of ‘value’ and a lifetime of $minutes on a response.
Example 3: Forgetting a cookie
$response = new Illuminate\Http\Response('Hello World');
This code snippet forgets a cookie named ‘name’ on a response.
In conclusion, the PHP Illuminate\Http\Request package library provides an easy way to handle HTTP requests in PHP, and the cookie method can help to access and manipulate cookies in HTTP requests.
PHP Illuminate\Http Request::cookie - 30 examples found. These are the top rated real world PHP examples of Illuminate\Http\Request::cookie extracted from open source projects. You can rate examples to help us improve the quality of examples.