From aa6ef7483284e75f73430af5e10594b5582c65b9 Mon Sep 17 00:00:00 2001 From: Krzysztof Strzelecki Date: Mon, 20 Jul 2020 02:43:03 +0200 Subject: [PATCH] Drobne poprawki --- resources/views/register.blade.php | 10 ++++++++-- routes/web.php | 10 ++++------ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/resources/views/register.blade.php b/resources/views/register.blade.php index 7b6a5fd..1d16dd2 100644 --- a/resources/views/register.blade.php +++ b/resources/views/register.blade.php @@ -1,6 +1,10 @@ @extends('layout.app') - - +@if( auth()->check() ) +@section('center-area') + @parent + Jesteś już zarejestrowany(a). +@stop +@else @section('center-area') @parent

Rejestracja

@@ -51,3 +55,5 @@ @stop + +@endif diff --git a/routes/web.php b/routes/web.php index b1daed3..8b12e55 100644 --- a/routes/web.php +++ b/routes/web.php @@ -11,10 +11,8 @@ | */ -Route::get('/', function () { - return view('depot'); -}); +Route::get('/', 'fireStationController@create'); Route::get('/dokumentacja', function(){ @@ -23,9 +21,9 @@ Route::get('/dokumentacja', function(){ Route::resource('pdfController', 'pdfController'); -Route::get('/straznica', function(){ - return view('depot'); -}); +//Route::get('/straznica', function(){ +// return view('depot'); +//}); Route::get('/pojazdy', function(){