Skip to content

Commit 4ac7dea

Browse files
Add reference to --seeder option (laravel#8258)
* Add reference to --seeder option * Update seeding.md Co-authored-by: Taylor Otwell <[email protected]>
1 parent 27bbe18 commit 4ac7dea

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

seeding.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,12 @@ php artisan db:seed
138138
php artisan db:seed --class=UserSeeder
139139
```
140140

141-
You may also seed your database using the `migrate:fresh` command in combination with the `--seed` option, which will drop all tables and re-run all of your migrations. This command is useful for completely re-building your database:
141+
You may also seed your database using the `migrate:fresh` command in combination with the `--seed` option, which will drop all tables and re-run all of your migrations. This command is useful for completely re-building your database. The `--seeder` option may be used to specify a specific seeder to run:
142142

143143
```shell
144144
php artisan migrate:fresh --seed
145+
146+
php artisan migrate:fresh --seed --seeder=UserSeeder
145147
```
146148

147149
<a name="forcing-seeding-production"></a>

0 commit comments

Comments
 (0)