1Cookie::queue(Cookie::make('name', 'value', $minutes));
2
3Cookie::queue('name', 'value', $minutes);
1// This is a little messy, but works with update in 2020
2// see security note: https://blog.laravel.com/laravel-cookie-security-releases
3
4use Illuminate\Support\Facades\Crypt;
5
6$hmac_prefixed = Crypt::decryptString(request()->cookie('cookie_name')) // result "a86aa854d5e61e2873acd30373b6725e36fba671|cookie_value"
7$cookie_value = explode("|",$hmac_prefixed)[1];