| Current Path : /home/users/unlimited/www/admin.priyotama.com/app/Models/ |
| Current File : /home/users/unlimited/www/admin.priyotama.com/app/Models/EcommerceItemDetails.php |
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class EcommerceItemDetails extends Model
{
use HasFactory;
protected $casts = [
'brand_id' => 'integer',
];
public function item()
{
return $this->belongsTo(Item::class, 'item_id');
}
public function brand()
{
return $this->belongsTo(Brand::class);
}
}