Categories
Laravel Samuel

clean seeding laravel DB

in the .env file set clean seed to true:

IS_CLEAN_SEED=true

then migrate with seed:

php artisan migrate:refresh --seed

The clean seeds are defined in the DatabaseSeeder class. The MVC repo has examples.