23 lines
393 B
PHP
23 lines
393 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use App\Enums\IsActive;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Department extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $guarded = ['id'];
|
|
|
|
protected function casts(): array
|
|
{
|
|
return [
|
|
'is_active' => IsActive::class,
|
|
'sort_order' => 'integer',
|
|
];
|
|
}
|
|
}
|