23 lines
349 B
Markdown
23 lines
349 B
Markdown
For creating dummy data
|
|
|
|
Seeder files go into app/Database/Seeds
|
|
|
|
```bash
|
|
php spark make:seeder Student --suffix
|
|
```
|
|
|
|
fill run method
|
|
|
|
![[Pasted image 20241113085432.png]]
|
|
|
|
Run seeder file
|
|
|
|
```bash
|
|
php spark db:seed StudentSeeder
|
|
```
|
|
|
|
Mass dummy data using Factory / Faker
|
|
|
|
![[Pasted image 20241113085948.png]]
|
|
|
|
![[Pasted image 20241113090300.png]]
|