Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/larastan/larastan/stubs/11.0.0/HasOneOrMany.stub
Назад
<?php namespace Illuminate\Database\Eloquent\Relations; /** * @template TRelatedModel of \Illuminate\Database\Eloquent\Model * @template TDeclaringModel of \Illuminate\Database\Eloquent\Model * @template TResult * * @extends \Illuminate\Database\Eloquent\Relations\Relation<TRelatedModel, TDeclaringModel, TResult> */ abstract class HasOneOrMany extends Relation { /** * @param array<model-property<TRelatedModel>, mixed> $attributes * @phpstan-return TRelatedModel */ public function make(array $attributes = []); /** * Find a model by its primary key or return new instance of the related model. * * @param mixed $id * @param array<int, (model-property<TRelatedModel>|'*')> $columns * @return ($id is (\Illuminate\Contracts\Support\Arrayable<array-key, mixed>|array<mixed>) ? \Illuminate\Database\Eloquent\Collection<int, TRelatedModel> : TRelatedModel) */ public function findOrNew($id, $columns = ['*']); /** * Get the first related model record matching the attributes or instantiate it. * * @param array<model-property<TRelatedModel>, mixed> $attributes * @param array<model-property<TRelatedModel>, mixed> $values * @return TRelatedModel */ public function firstOrNew(array $attributes = [], array $values = []); /** * Get the first related record matching the attributes or create it. * * @param array<model-property<TRelatedModel>, mixed> $attributes * @param array<model-property<TRelatedModel>, mixed> $values * @return TRelatedModel */ public function firstOrCreate(array $attributes = [], array $values = []); /** * Attempt to create the record. If a unique constraint violation occurs, attempt to find the matching record. * * @param array<model-property<TRelatedModel>, mixed> $attributes * @param array<model-property<TRelatedModel>, mixed> $values * @return TRelatedModel */ public function createOrFirst(array $attributes = [], array $values = []); /** * Create or update a related record matching the attributes, and fill it with values. * * @param array<model-property<TRelatedModel>, mixed> $attributes * @param array<model-property<TRelatedModel>, mixed> $values * @return TRelatedModel */ public function updateOrCreate(array $attributes = [], array $values = []); /** * @param array<model-property<TRelatedModel>, mixed> $attributes * @return TRelatedModel */ public function create(array $attributes = []); }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка