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 {