jeudi 12 avril 2018

Store/Check/Get/List Cookie in Laravel 5.1

I just store a cookie into the queue

Cookie::queue('session', $response['session'], 3);

When I try to list all the cookies in the queue, I got an empty array

dd(Cookie::getQueuedCookies()); // I got empty array --->  []


if(Cookie::has('session')) {
    $session = Cookie::get('session');
}

What did I miss ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire