jeudi 4 février 2016

laravel5.1 retrieve cookie data (returns null all the time)

After I set a cookie in Laravel I tried to retrieve it's content by using this code. It returns all the time null, but the cookie is set:

 $value = $request->cookie('affiliate_id');
     dd($value);

cookie is set

As you can see, the value of cookie "affiliate_id" is not empty.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire