Laravel 5.* introduces a simple syntax for lookups and updates based on the value of specific keys in your […]
If you want to increment or decrement opration using update() method of laravel query builder then you also do […]
ck Shared lock is, when more than one transaction is granted read access to a given record. One transaction […]
If the table has an auto-incrementing id, use the insertGetId method to insert a record and then retrieve the […]
The orderBy method is used to sort the result-set in ascending or descending order. The first argument to the […]
The Where clause is used to extract only those records that fulfill a specified condition. The most basic call […]
Sometimes you need to bind multiple queries then you can use union in laravel. If you use union then […]
To perform a “cross join” use the crossJoin method with the name of the table you wish to cross […]
The leftJoin method has the same signature as the join method. When I fetch all columns from the get-go, […]
One such cool feature us using raw queries in laravel. These expressions will be injected into the query as […]