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
- PHP Laravel for beginners: from zero fly to the heaven !
- 1.Getting started with laravel: To do list project
- 1.Course overview
- 2.Install xampp and editor
- 3. Download and run laravel
- 4. MVC concept
- 5.Website structure and blade template engine
- 6.CRUD concept: create, read, update, and delete
- 7.Create data by Tinker
- 8.Create data by Factories
- 9.Read function
- 10.Create function
- 11.Update function
- 12.Delete function
- 13.Course summary
- Laravel common command line
- Laravel package and function
- Account 1: Laravel default auth function
- Account 2: Laravel register, login, logout
- Payment : Laravel PayPal
- Payment 2: Laravel alipay
- Payment 3: Laravel wechatpay
- Template 1: Laravel adminlte template
- MySQL