desc sort to direction
This commit is contained in:
parent
858492cd2e
commit
27cbb5d8cf
|
@ -28,7 +28,7 @@ class DirectionController extends Controller
|
||||||
{
|
{
|
||||||
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
public function index(): View|Application|Factory|\Illuminate\Contracts\Foundation\Application
|
||||||
{
|
{
|
||||||
$directions = Direction::all();
|
$directions = Direction::all()->sortBy('created_at', SORT_REGULAR, true);
|
||||||
return view('admin.catalog.direction.index', compact('directions'));
|
return view('admin.catalog.direction.index', compact('directions'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue