<?php

namespace App\Models;

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

class Tag extends Model
{
    use HasFactory;


    protected $fillable = [
        'name_ar',
        'name_en',
        'background_color'
    ];

    protected $hidden = [
        'created_at',
        'updated_at'
    ];
    public function products()
    {
        return $this->hasMany(Product::class);    
    }
}
