<?php

namespace App\Models;

// use Illuminate\Contracts\Auth\MustVerifyEmail;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Notifications\Notifiable;


class Product extends Model
{
    use Notifiable;

    protected $fillable = [
        'category_id',
        'name',
        'count',
        'price',
        'photo',
    ];
    // public function categories()
    // {
    //     return $this->hasMany(Category::class);
    // }
    public function categories()
    {
        return $this->hasMany(Category::class);
    }
}
