forked from aslan/applicant-site
prodV1 #2
|
@ -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