Laravel where clause with date_format() example
https://www.itsolutionstuff.com/post/laravel-where-clause-with-date-format-exampleexample.html
Laravel where clause with date_format() example
$data = DB::table("items") ->select("id","title","created_at") ->where(DB::raw("(DATE_FORMAT(created_at,'%Y-%m'))"),"2016-07") ->get();print_r($data);PreviousLaravel Where Clause with Mysql Function ExampleNextLaravel - Where Condition with Two Columns Example (ok)
Last updated