ECOMMERCE/app/Models/StoreCapacity.php

20 lines
388 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class StoreCapacity extends Model
{
use HasFactory;
protected $table = 'store_capacity';
protected $fillable = ['store_category_id', 'location_id', 'max'];
public function location() {
return $this->belongsTo(Location::class);
}
}