Laravel Unique Column with Soft Deletes
Вставка
- Опубліковано 19 вер 2024
- In this video, I have tough how to use unique column with soft deletes in laravel application. we will apply soft delete to users table and also keep email unique using virtual column.
#laravel #advance #unique #softdeletes #column #fields #model #eloquent #itsolutionstuff
Thats great, but what if we have to use Upsert function ? (Bulk Insert)
Yes sure it works with the upsert() function. upsert() take a two argument and check with second one.