Skip to content
Advertisement

Checking duplicated data in Laravel

This code work as send to inn_db table from ext_db.

but it cannot check if the data is the same or different in inn_db.

So there posited same values in inn_db.

How could I add that job?.

Laravel-5.4, MySQL, InnoDB.

JavaScript

Finally, I got the answer as below code with connect view when after discussion.

Thanks to @Pramid and @Badea 🙂

JavaScript

Advertisement

Answer

Give this a try, you basically need to check each record of the chunk in your customer table if it doesn’t exist then allow them to get insert into customer table

JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement