From 4b92a7928ec6634dff4ca066af0a43ad1cfb3c46 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 20 Oct 2020 23:56:05 +0200 Subject: Learning about forms, POST, validation and AJAX in Laravel. --- app/Http/Controllers/PagesController.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app') diff --git a/app/Http/Controllers/PagesController.php b/app/Http/Controllers/PagesController.php index c65e821..fcdfba9 100644 --- a/app/Http/Controllers/PagesController.php +++ b/app/Http/Controllers/PagesController.php @@ -4,6 +4,8 @@ namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Post; +use function dd; +use function redirect; class PagesController extends Controller { @@ -47,6 +49,12 @@ class PagesController extends Controller return view('pages.reserve'); } + public function reserveForm(Request $request) + { + //dd($request->input('modes')); + return redirect('reserve')->with('status', 'Reservation submitted.'); + } + //public function services() //{ ////$title = 'Some title'; -- cgit v1.2.3