From 837404e55663c97c09472c72bcce58d5b08c0e61 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 5 Dec 2018 21:53:59 +0100 Subject: Fixed redirects --- resources/views/quotes.blade.php | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/views/quotes.blade.php b/resources/views/quotes.blade.php index 0a09d45..9f51b7f 100644 --- a/resources/views/quotes.blade.php +++ b/resources/views/quotes.blade.php @@ -3,7 +3,7 @@ @section('content')

Zitate des {{ config('app.name') }}

-
+ {{ csrf_field() }}
diff --git a/routes/web.php b/routes/web.php index 67ff691..0cd534f 100644 --- a/routes/web.php +++ b/routes/web.php @@ -44,5 +44,5 @@ Route::post('/quote', function (Request $request) { $quote->quotist = $request->quotist; $quote->save(); - //return redirect('/'); + return redirect('/'); }); -- cgit v1.2.3