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