Use firstOrCreate instead of create so db:seed can run safely on container restart without duplicate key violation.
19 KiB
19 KiB
Use firstOrCreate instead of create so db:seed can run safely on container restart without duplicate key violation.