mirror of
https://github.com/laravel/laravel.git
synced 2025-02-20 11:53:14 +08:00
type hint faker generator
allow IDE to help with autocompletion
This commit is contained in:
parent
ef958716c3
commit
7bb1326535
@ -11,7 +11,7 @@
|
||||
|
|
||||
*/
|
||||
|
||||
$factory->define(App\User::class, function ($faker) {
|
||||
$factory->define(App\User::class, function (\Faker\Generator $faker) {
|
||||
return [
|
||||
'name' => $faker->name,
|
||||
'email' => $faker->email,
|
||||
|
Loading…
x
Reference in New Issue
Block a user