fix department model
This commit is contained in:
parent
ed6e462f2c
commit
96d7d4048e
@ -3,17 +3,13 @@
|
||||
namespace App\Models;
|
||||
|
||||
use App\Models\Traits\Active;
|
||||
use App\Models\Traits\HasOrganization;
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
use Illuminate\Database\Eloquent\Relations\BelongsTo;
|
||||
|
||||
class Department extends Model
|
||||
{
|
||||
use Active;
|
||||
|
||||
public function organization(): BelongsTo
|
||||
{
|
||||
return $this->belongsTo(Organization::class);
|
||||
}
|
||||
use HasOrganization;
|
||||
|
||||
protected function casts(): array
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user