Answers for "laravel sortby varchar date"

PHP
0

laravel sortby varchar date

$items = DB::table("mytable")->where('userId','=',$userId)->orderByRaw("DATE_FORMAT('d-m-Y',startDate), ASC")->get();
Posted by: Guest on June-08-2021
0

laravel collection sort by date

$sorted = $transaction->sortBy(function($col)
{
    return $col;
})->values()->all();
Posted by: Guest on September-08-2020

Browse Popular Code Answers by Language