The expression return $this->hasMany(Ap...dels\Assessment::class) returns the type Illuminate\Database\Eloquent\Relations\HasMany which is incompatible with the documented return type Illuminate\Database\Eloquent\Collection.
Loading history...
37
}
38
39
/**
40
* Get the localized name of this Type
41
*
42
* @return string
43
*/
44
public function getNameAttribute(): string
45
{
46
return $this->key; //TODO: actually return a localized name