AucT
3 years ago
1027
6
Laravel

DB->insert ignore Batch records

Posted 3 years ago by AucT

I know there is

DB::table('users')->insert([ ['email' => '[email protected]', 'votes' => 0], ['email' => '[email protected]', 'votes' => 0] ]);

But I need insert ignore... Is there a way to batch insert ignore?

Please sign in or create an account to participate in this conversation.