Implement the Cartable interface
1.xTo make a model compatible with the cart (allowing it to be stored as an item), your model must implement the Binafy\LaravelCart\Cartable interface and define a getPrice() method.
use Binafy\LaravelCart\Cartable;
class Product extends Model implements Cartable
{
public function getPrice(): int
{
// Return the price of the product
}
}