23 lines
536 B
PHP
23 lines
536 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Models\Concerns\BelongsToTenant;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
/** @property int $lot_id */
|
|
class InventoryLotAllocation extends Model
|
|
{
|
|
use BelongsToTenant;
|
|
|
|
public $timestamps = false;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected static function booted(): void
|
|
{
|
|
static::updating(fn () => throw new \LogicException('Preservar repartições de lotes.'));
|
|
static::deleting(fn () => throw new \LogicException('Preservar repartições de lotes.'));
|
|
}
|
|
}
|