Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/#8-semesters-management' into #8-…
Browse files Browse the repository at this point in the history
…semesters-management
  • Loading branch information
kamilpiech97 committed Sep 25, 2023
2 parents 5f9cde6 + f3ef3f3 commit c84c3fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Http/Controllers/Dashboard/SemesterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class SemesterController extends Controller
{
public function index(): Response
{
$semesters = Semester::all()->sortByDesc("created_at");
$semesters = Semester::query()->orderByDesc("created_at")->get();

return inertia("Dashboard/Semester/Index", [
"semesters" => SemesterResource::collection($semesters),
Expand Down

0 comments on commit c84c3fe

Please sign in to comment.