Laravel Daily

Just noticed this great change to Laravel React starter kit, released in September.
Now I can run `php artisan migrate --seed` multiple times, and won't get errors.

3 weeks ago | [YT] | 146



@elmalleable

šŸ˜‚ā¤ That's how I always wrote my seeders. Plus some seeders have a production check so they dont run in production. Those are for first deployment.

3 weeks ago | 3

@shahsawoodshinwari

Yup everytime we have to do it

3 weeks ago | 1

@albertb4460

Great change! QoL always goes a long way

3 weeks ago | 0

@DongsMBM

there's updateOrCreate() as well, which is also very useful

3 weeks ago | 2

@misaf1990

That’s a super practical change!

3 weeks ago | 0

@Rimtay

I was doing php artisan migrate:fresh —seed

3 weeks ago | 4