<?php

namespace App\Models;

use Illuminate\Database\DBAL\TimestampType;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use App\Models\Product;

class Category extends Model
{
    use HasFactory;
    public $timestam = true;
    protected $fillable = [
        'category',
        'category_slug',
        'created_at',
        'updated_at',
    ];

    public function products()
    {
    	return $this->hasMany(Product::class);
    }
}
