Mercurial > packages > magicforger
view src/Generator/Factory/stubs/factory.stub @ 35:55d2e5c5dad9 ls_dev_2025_09
Working on the factory, it's in a semi working state but obviously not complete
| author | Luka Sitas <sitas.luka.97@gmail.com> |
|---|---|
| date | Thu, 11 Sep 2025 21:25:51 -0400 |
| parents | |
| children | 76584181267a |
line wrap: on
line source
<?php namespace Database\Factories; use App\Models\{{ modelName }}; use Illuminate\Database\Eloquent\Factories\Factory; use Illuminate\Support\Facades\Hash; use Illuminate\Support\Str; /** * @extends \Illuminate\Database\Eloquent\Factories\Factory<\App\Models\{{ modelName }}> */ class {{ class }} extends Factory { /** * The name of the factory's corresponding model. * * @var class-string<\Illuminate\Database\Eloquent\Model> */ protected $model = {{ modelName }}::class; /** * Define the model's default state. * * @return array<string, mixed> */ public function definition(): array { return [ # {{ factoryInsertPoint }} ]; } }
