laravel-factory-generator
laravel-factory-generator copied to clipboard
IMP(fake-L9): in Laravel 9 faker is now it's own helper method
https://laravel-news.com/laravel-9-18-0 https://laravel.com/docs/9.x/helpers#method-fake
so
'name' => $this->faker->name
can now be shortened to
'name' => fake()->name
version_compare(app()->version(), '9.18.0', '>=');
:)