'boolean']; } public function branch(): BelongsTo { return $this->belongsTo(Branch::class, 'branch_id'); } /** * Select option label — includes branch when set so multi-branch duplicates are distinguishable. */ public function labelForSelect(): string { $branch = $this->relationLoaded('branch') ? $this->branch : $this->branch()->first(); if ($branch?->name) { return $this->name.' — '.$branch->name; } return (string) $this->name; } }