All cookies created by the Nova framework are encrypted and signed with an authentication code, meaning they will be considered invalid if they have been changed by the client.
$value = Cookie::get('name');
$response = Response::make('Hello World'); $response->withCookie(Cookie::make('name', 'value', $minutes));
If you would like to set a cookie before a response has been created, use the
Cookie::queue() method. The cookie will automatically be attached to the final response from your application.
Cookie::queue($name, $value, $minutes);
$cookie = Cookie::forever('name', 'value');