Skip to content

Commit

Permalink
remove turma.index
Browse files Browse the repository at this point in the history
  • Loading branch information
Lobz committed Aug 2, 2024
1 parent 3113e81 commit bbb0440
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 21 deletions.
3 changes: 1 addition & 2 deletions app/Http/Controllers/TurmaController.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ private function validateRequest(Request $request, Turma|null $model = null)
*/
public function index()
{
$this->authorize('list', Turma::class);
return View('turma.index')->with('turmas',Turma::all());
return redirect()->action([CursoController::class, 'index']);
}

/**
Expand Down
19 changes: 0 additions & 19 deletions resources/views/turma/index.blade.php

This file was deleted.

0 comments on commit bbb0440

Please sign in to comment.