K
K
Kazah902018-11-19 21:18:27
Laravel
Kazah90, 2018-11-19 21:18:27

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

1 answer(s)
D
Dmitry, 2018-11-20
@Kazah90

How about session

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question