🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
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