<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\order_toppings_complete;
use App\Models\product_ckeckout_attr;
use App\Models\add_to_cart;

class checkout extends Model
{
    use HasFactory;

    // public function toppings_complete()
    // {
    //     return $this->hasMany(insert_topping::class)
    //         ->whereNotNull('toppings_left_name')
    //         ->orWhereNotNull('toppings_center_name')
    //         ->orWhereNotNull('toppings_right_name');
    // }

    public function add_to_carts()
    {
        return $this->belongsTo(add_to_cart::class);
    }
}
