<?php

namespace App\Models;

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

class Product extends Model
{
    use HasFactory;

    // Add 'stock' and optionally 'description' if needed
    protected $fillable = ['name', 'price', 'stock', 'image','unit'];

    public function cart()
    {
        return $this->hasMany(Cart::class);
    }
}
