<?php

namespace App;

use Illuminate\Database\Eloquent\Model;

class Invoice extends Model
{
    protected $primaryKey = 'id_products_category';
    protected $table = 'products_category';
    protected $fillable = [
        'products_category_name',
        'products_category_name_urdu',
        'products_category_status',
        'created_by',
    ];

    public function products()
    {
        return $this->hasMany(Products::class, 'category_id');
    }
}

