أُنشئ من Tokal/Test
26 أسطر
446 B
PHP
26 أسطر
446 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
|
|
class PricingRule extends Model
|
|
{
|
|
use HasFactory;
|
|
public $timestamps = false;
|
|
|
|
protected $fillable = [
|
|
'scope',
|
|
'venue_type',
|
|
'venue_id',
|
|
'price_per_person',
|
|
'is_active',
|
|
];
|
|
|
|
public function venue()
|
|
{
|
|
return $this->belongsTo(Venue::class);
|
|
}
|
|
}
|