Difference between #17 and #18 of
Yii3 - How to start

Revision #18 has been created by rackycz 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 Fake
r. 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`
[...]
1 0
2 followers
Viewed: 597 times
Version: 3.0
Category: Tutorials
Tags:
Written by: rackycz rackycz
Last updated by: rackycz rackycz
Created on: Oct 8, 2025
Last updated: 2 days ago
Update Article

Revisions

View all history