laravel insert or ignore

Solutions on MaxInterview for laravel insert or ignore by the best coders in the world

showing results for - "laravel insert or ignore"
Nicola
14 Feb 2017
1<?php
2DB::table('users')->insertOrIgnore([
3    ['id' => 1, 'email' => 'taylor@example.com'],
4    ['id' => 2, 'email' => 'dayle@example.com']
5]);
6