authentification fini
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Gestion Clients</title>
|
||||
<link href="{{ asset('css/style.css') }}" rel="stylesheet">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -10,6 +11,16 @@
|
||||
<a href="{{ url('/') }}">Accueil</a>
|
||||
<a href="{{ url('/clients') }}">Liste des clients</a>
|
||||
<a href="{{ url('/ajoutClient') }}">Crée un client</a>
|
||||
@guest
|
||||
<a href="{{ route('login') }}">Se connecter</a>
|
||||
<a href="{{ route('register') }}">Créer un compte</a>
|
||||
@else
|
||||
Bonjour, {{ auth()->user()->name }}
|
||||
<form method="POST" action="{{ route('logout') }}" style="display:inline;">
|
||||
@csrf
|
||||
<button type="submit">Déconnexion</button>
|
||||
</form>
|
||||
@endguest
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user