Laravel is very useful when we want to do basic operation .Suppose if we have a condition that we have to
Insert a new record if not exist and update if exist, If we do this task in php then we have to put if-else condition But In Laravel 4.x we have done this by using one query.
Syntax for inserting a new record if not exist and update if exist is:
0 Comment(s)