FleetCart/Modules/Cart/Http/Controllers/CartClearController.php
2023-06-11 13:14:03 +01:00

21 lines
342 B
PHP

<?php
namespace Modules\Cart\Http\Controllers;
use Modules\Cart\Facades\Cart;
class CartClearController
{
/**
* Store a newly created resource in storage.
*
* @return \Illuminate\Http\Response
*/
public function store()
{
Cart::clear();
return Cart::instance();
}
}