Answer the question
In order to leave comments, you need to log in
How to make data array in Cookie in laravel?
Good afternoon, nagovnokodil such a thing
public function show ($title){
$item = Cookie::queue('looking', $title , 30);
$blog = blog::where('seo_url', $title)->firstOrFail();
return view('site.pages.viewblog')->withBlog($blog);
}
The bottom line is this, I want to pass the information I need to cookies. Everything works for me, but I need to send more than one request. Methods I use larovela. I'm very dumb and can't find the method in the laravel docks. Tell me how you can get data from different requests and add them to the cookie array.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question