diff --git a/app/Http/Controllers/TurmaController.php b/app/Http/Controllers/TurmaController.php index 1c6cfd7..a3fa3a5 100644 --- a/app/Http/Controllers/TurmaController.php +++ b/app/Http/Controllers/TurmaController.php @@ -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']); } /** diff --git a/resources/views/turma/index.blade.php b/resources/views/turma/index.blade.php deleted file mode 100644 index 4675726..0000000 --- a/resources/views/turma/index.blade.php +++ /dev/null @@ -1,19 +0,0 @@ -@extends('layouts.base') -@section('content') -

- Turmas - @can ('create', App\Models\Turma::class) - Nova turma - - @endcan -

- - -@if (Session::has('message')) -
{{ Session::get('message') }}
-@endif - -@include('turma.table') - -@endsection