*/ protected $fillable = [ 'name' ]; /** * The accessors to append to the model's array form. * * @var list */ protected $appends = [ 'value' ]; /** * HasMany Invoices. * * @return \Illuminate\Database\Eloquent\Relations\HasMany */ public function invoices(): \Illuminate\Database\Eloquent\Relations\HasMany { return $this->hasMany(Invoice::class); } /** * Return value attribute for belongsto search component. * * @return \Illuminate\Database\Eloquent\Casts\Attribute */ protected function value(): \Illuminate\Database\Eloquent\Casts\Attribute { return new Attribute( get: fn () => $this->id, ); } }