From bbb0440b6738bcb37fa1eff1edfc12c0a5ba0238 Mon Sep 17 00:00:00 2001 From: Mali Oz Date: Fri, 2 Aug 2024 17:19:48 -0300 Subject: [PATCH] remove turma.index --- app/Http/Controllers/TurmaController.php | 3 +-- resources/views/turma/index.blade.php | 19 ------------------- 2 files changed, 1 insertion(+), 21 deletions(-) delete mode 100644 resources/views/turma/index.blade.php 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