I'm trying to retrieve a cookie from a middleware in Laravel 5.3 but it seems like $request->cookie('language') is empty. I'm guessing that it is only set after the middleware runs.
I read somewhere that I should use \Cookie::queued('language'), but it's still empty.
Is my only option using the $_COOKIE variable?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2fWK0vw
via IFTTT
Aucun commentaire:
Enregistrer un commentaire