Skip to content

Commit

Permalink
Update app/Http/Controllers/Dashboard/SemesterController.php
Browse files Browse the repository at this point in the history
Co-authored-by: Krzysztof Rewak <krzysztof.rewak@blumilk.pl>
  • Loading branch information
kamilpiech97 and krzysztofrewak authored Sep 25, 2023
1 parent b9a0f39 commit f3ef3f3
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 @@ -16,7 +16,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 f3ef3f3

Please sign in to comment.