User Tools

Site Tools


seeder

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
seeder [2020/12/23 19:11] chifekseeder [2023/09/14 06:06] (current) – external edit 127.0.0.1
Line 107: Line 107:
 php artisan migrate:fresh --seed php artisan migrate:fresh --seed
 </code> </code>
 +
 +**Forcing Seeders To Run In Production**
 +
 +Some seeding operations may cause you to alter or lose data. In order to protect you from running seeding commands against your production database, you will be prompted for confirmation before the seeders are executed in the `production` environment. To force the seeders to run without a prompt, use the `--force` flag:
 +
 +<code>php artisan db:seed --force</code>
seeder.1608750680.txt.gz · Last modified: 2023/09/14 06:06 (external edit)