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 = [])
Получить новый экземпляр фабрики для модели.
static protected Factory<static> newFactory()
Создать новый экземпляр фабрики для модели.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/10.x/Illuminate/Database/Eloquent/Factories/HasFactory.html