*/ protected $casts = [ 'restricted' => 'boolean', 'requires_driver_license' => 'boolean', 'no_self_signup' => 'boolean', 'show_on_dashboard' => 'boolean', 'hide_register' => 'boolean', ]; /** * @codeCoverageIgnore For some reasons parent::boot gets ignored here 0o */ protected static function boot(): void { parent::boot(); static::addGlobalScope('order', fn(Builder $builder) => $builder->orderBy('name')); } public function hasContactInfo(): bool { return !empty($this->contact_name) || !empty($this->contact_dect) || !empty($this->contact_email); } }