From 96d7d4048e4407c8971e8b35b09edc1d25dc61ad Mon Sep 17 00:00:00 2001 From: Masroor Ehsan Date: Wed, 29 Jan 2025 10:45:52 +0600 Subject: [PATCH] fix department model --- app/Models/Department.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/app/Models/Department.php b/app/Models/Department.php index 398f524..d2e047c 100644 --- a/app/Models/Department.php +++ b/app/Models/Department.php @@ -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 {