Spec-Zone.ru › Laravel 9

HasFactory

trait HasFactory (View source)

Методы

static Factory<static> factory(callable|array|int|null $count = null, callable|array $state = [])

Получить новый экземпляр фабрики для модели.

static Factory<static> newFactory()

Создать новый экземпляр фабрики для модели.

Подробности

static Factory<static> factory(callable|array|int|null $count = null, callable|array $state = [])

Получить новый экземпляр фабрики для модели.

Параметры

callable|array|int|null $count
callable|array $state

Возвращаемое значение

Factory<static>

static protected Factory<static> newFactory()

Создать новый экземпляр фабрики для модели.

Возвращаемое значение

Factory<static>

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/9.x/Illuminate/Database/Eloquent/Factories/HasFactory.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API