Please write some additional where Clauses in Laravel?
Laravel provides various methods that we can use in queries to get records with our conditions.
These methods are given below
- where()
- orWhere()
- whereBetween()
- orWhereBetween()
- whereNotBetween()
- orWhereNotBetween()
- wherein()
- whereNotIn()
- orWhereIn()
- orWhereNotIn()
- whereNull()
- whereNotNull()
- orWhereNull()
- orWhereNotNull()
- whereDate()
- whereMonth()
- whereDay()
- whereYear()
- whereTime()
- whereColumn()
- orWhereColumn()
- whereExists()
BY Best Interview Question ON 18 Apr 2019