Answer the question
In order to leave comments, you need to log in
How to work with cookies in Laravel?
I execute the following code:
The script refuses to work with Cookie, I point out this error:\Cookie::put('rid', $rid, 60);
Call to undefined method Illuminate\Cookie\CookieJar::put()
'Illuminate\Cartalyst\Sentry\SentryServiceProvider',
Class 'Illuminate\Cartalyst\Sentry\SentryServiceProvider' not found
Answer the question
In order to leave comments, you need to log in
The \Cookie::put() method does not exist. There are make() and forever() methods, as well as a cookie() helper. If you want to not only create a cookie, but also send it to the client, then you need to attach it to the response:
And at the same time, tell us what is the connection between cookies and Sentry, and what does Cartalyst\Sentry\SentryServiceProvider suddenly do in the Illuminate namespace, and why did you copy some folders somewhere?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question