public function handle($request, Closure $next)
{
if (!$request->hasCookie('city')) {
return $next($request)->cookie('city', 'testCity');
}
return $next($request);
}
request()->city выдает null
$_COOKIE['city'] выдает testCity
$request->cookie('city');
use Illuminate\Support\Facades\Cookie;
$value = Cookie::get('name');