安装 faker :
composer require fzaninotto/faker
2.在laravel中使用:
use Faker\Factory as Faker;
$faker = Faker::create();
安装 faker :
composer require fzaninotto/faker
2.在laravel中使用:
use Faker\Factory as Faker;
$faker = Faker::create();
转载于:https://my.oschina.net/u/234439/blog/467244