Revision #18 has been created by
rackycz on Oct 9, 2025, 8:00:21 AM with the memo:
edit
« previous (#17) next (#19) »
Changes
Title
unchanged
Yii3 - How to start
Category
unchanged
Tutorials
Yii version
unchanged
3.0
Tags
unchanged
Content
changed
[...]
## Seeding the database
Seeding = inserting fake data.
You can technically create a migration or a command and insert random data manually. But you can also use the Faker. In that case I needed following dependencies:
- composer require fakerphp/faker
- composer require yiisoft/security (not only for generating random strings)
Now find the class `HelloCommand.php`, copy and rename it to `SeedCommand.php`[...]