setcookie in laravel 8
Cookie::queue(Cookie::make('name', 'value', $minutes));
Cookie::queue('name', 'value', $minutes);
setcookie in laravel 8
Cookie::queue(Cookie::make('name', 'value', $minutes));
Cookie::queue('name', 'value', $minutes);
laravel get cookie value
// 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];
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us