...
This commit is contained in:
parent
cedf373c03
commit
e225e05c52
21 changed files with 121 additions and 0 deletions
23
MyObsidianVault/WebDev/2 CodeIgniter/05.) Seeder.md
Normal file
23
MyObsidianVault/WebDev/2 CodeIgniter/05.) Seeder.md
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
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]]
|
||||
Loading…
Add table
Add a link
Reference in a new issue