😁Laravel - Where Condition with Two Columns Example (ok)
https://www.itsolutionstuff.com/post/laravel-5-where-condition-with-two-columns-example-codeexample.html
Chú ý: 😒👌
$data = DB::table("items") ->whereColumn('created_at','updated_at') ->get(); print_r($data); Được viết lại dưới dạng raw $products = DB::table("products") ->where(DB::raw("created_at"),DB::raw("updated_at")) ->get();
Laravel - Where Condition with Two Columns Example
$data = DB::table("items")
->whereColumn('created_at','updated_at')
->get();
print_r($data);PreviousLaravel where clause with date_format() exampleNextLaravel - whereDate(), whereMonth(), whereDay() and whereYear() examples.
Last updated