prodV1 #2

Open
RomanGolienko wants to merge 309 commits from prodV1 into main
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 27cbb5d8cf - Show all commits

View File

@ -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'));
} }