laravel-factory-generator icon indicating copy to clipboard operation
laravel-factory-generator copied to clipboard

IMP(fake-L9): in Laravel 9 faker is now it's own helper method

Open chrillep opened this issue 2 years ago • 0 comments

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

version_compare(app()->version(), '9.18.0', '>=');

:)

chrillep avatar Aug 23 '22 08:08 chrillep