多应用+插件架构,代码干净,二开方便,首家独创一键云编译技术,文档视频完善,免费商用码云13.8K 广告
fzaninotto/Faker: [https://github.com/fzaninotto/Faker](https://github.com/fzaninotto/Faker) file location: <code>/database/factories/UserFactory.php</code> ``` $factory->define(App\Target::class, function (Faker $faker) { return [ 'target' => $faker->sentence(6), 'ranking' => str_random(1), ]; }); ``` ``` protected $guarded = []; // Set which field cannot be injected ``` ``` php artisan tinker factory(App\Target::class, 10)->create(); ``` If you have more time, you can fix this problem. This problem is treated as an assignment