Skip to content

Commit

Permalink
ajustes visuais na lista de conceitos + botão de logoff
Browse files Browse the repository at this point in the history
  • Loading branch information
diegolinkk committed Jun 8, 2022
1 parent 475bf14 commit 889fd2b
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 2 deletions.
6 changes: 6 additions & 0 deletions app/Http/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,10 @@ public function cadastro(Request $request)

}

public function logout()
{
Auth::logout();
return redirect()->route('login');
}

}
9 changes: 7 additions & 2 deletions resources/views/conceito/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,13 @@

</div>
<div>
<a href="{{route('form_editar_conceito',['id'=> $conceito->id])}}" class="btn btn-outline-secondary">Editar</a>
<a href="{{route('remover_conceito',['id' => $conceito->id ])}}" class="btn btn-danger">Excluir</a>
<a href="{{route('form_editar_conceito',['id'=> $conceito->id])}}" class="btn btn-outline-secondary">
<i class="fa-solid fa-pen-to-square"></i> Editar
</a>

<a href="{{route('remover_conceito',['id' => $conceito->id ])}}" class="btn btn-danger">
<i class="fa-solid fa-trash"></i> Excluir
</a>
</div>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions resources/views/navbar.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
<a href="{{route('listar_estudo')}}" class="nav-link">Histórico de estudo</a>
</li>


</ul>
<div class="navbar-nav">
<li class="nav-item">
<a href="{{route('logout')}}" class="btn btn-outline-danger">Logout</a>
</li>
</div>
</div>
</nav>
3 changes: 3 additions & 0 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@

Route::get('/login/cadastro','cadastro_form')->name('cadastro_de_usuario');
Route::post('/login/cadastro','cadastro');

Route::get('/logout','logout')->name('logout');

});

//agrupamento de rota por middleware e em seguida agrupando por controller
Expand Down

0 comments on commit 889fd2b

Please sign in to comment.