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