I
I
Igor Tkachenko2016-08-01 20:11:59
HTTP Cookies
Igor Tkachenko, 2016-08-01 20:11:59

How to assign and get cookies in laravel 5.2 controller or model?

Subject.
I just can’t understand how to do this, I memorized https://laravel.com/docs/5.2/requests#cookies, writes that there is no withCookie method.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Gavva, 2016-08-04
@aprel_co

$response->withCookie('name', 'value', $minutes);
//some code
return $response

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question