😁Laravel - Where Condition with Two Columns Example (ok)
https://www.itsolutionstuff.com/post/laravel-5-where-condition-with-two-columns-example-codeexample.html
Last updated
https://www.itsolutionstuff.com/post/laravel-5-where-condition-with-two-columns-example-codeexample.html
Last updated
By Hardik Savani July 29, 2016 Category : LaravelPlayUnmuteLoaded: 1.20%FullscreenLaravel 5 introduce whereColumn() in Query Builder, that way we can compare two column like simple where condition. We sometimes require to check this type of condition.
you can use wherecolumn() eloquent function in laravel 6, laravel 7, laravel 8 and laravel 9 application.
In this example code, i have simple "items" table and i want to get only created_at and updated_at column should equals. So you can also check bellow laravel eloquent as bellow:
Example:
Example 2:
Read Also: Laravel where clause with date_format() example
I hope it can help you....