<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProductModel extends Model
{
    use HasFactory;
    protected $table   = 'products';
    protected $guarded = ['id'];

    public function category()
    {
        return $this->belongsTo(CategoryModel::class,'category_id','id');        
    }


    // public function brand()
    // {
    //     return $this->belongsToMany(ProductBrandModel::class,'product_brand','product_id', 'brand_id');
    // }


    
}
