FleetCart/Themes/Storefront/Http/Controllers/CookieBarController.php

14 lines
253 B
PHP
Raw Normal View History

2023-06-11 12:14:03 +00:00
<?php
namespace Themes\Storefront\Http\Controllers;
class CookieBarController
{
public function destroy()
{
$cookie = cookie()->forever('show_cookie_bar', false);
return response('')->withCookie($cookie);
}
}