* @mixin \Illuminate\Database\Eloquent\Builder */ abstract class HasOneOrMany extends Relation { /** * @param array $attributes * @param array $values * @return \Illuminate\Database\Eloquent\Model * @psalm-return TRelatedModel */ public function firstOrNew(array $attributes = [], array $values = []) { } /** * @param array $attributes * @param array $values * @return \Illuminate\Database\Eloquent\Model * @psalm-return TRelatedModel */ public function firstOrCreate(array $attributes = [], array $values = []) { } }