阅读背景:

当插入重复的键时,laravel很容易忽略错误

来源:互联网 

I'm fetching a JSON from another service and want to insert a bunch of data in a table. I want to do it a way it won't crash everytime I run it. I'd like to keep my unique constraint on my PK of the table, (cause i dont want to insert the same data twice) but, I don't want laravel to throw a fatal error if it happens (on a specific table only).I'm fetching a JSON from another service and wa




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: