Is there a quick way to modify a SQL query generated by Laravel's Fluent to have an INSERT IGNORE
instead of the usual INSERT
?
I'm trying to insert an array with fifty elements. Writing out the entire query manually will bloat up the code and make it more susceptible to human errors.
See Question&Answers more detail:os