<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class Item extends Model
{
protected $fillable = [
'item_name',
'description',
'old_price',
'new_price',
'category_id',
'main_img',
'img_1',
'img_2',
'img_3',
'trend',
'new',
'exist'
];
public function category()
{
return $this->belongsTo(Category::class);
}
}