diff options
author | Mateja <mail@matejamaric.com> | 2020-10-20 23:56:05 +0200 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2020-10-20 23:56:05 +0200 |
commit | 4b92a7928ec6634dff4ca066af0a43ad1cfb3c46 (patch) | |
tree | 3a224191e059c9691fed0a5b46119312ffcb714d /app/Http/Controllers | |
parent | d78e06a328b1f06ae0bbe77a2d96cb304e23878d (diff) | |
download | yota-laravel-4b92a7928ec6634dff4ca066af0a43ad1cfb3c46.tar.gz yota-laravel-4b92a7928ec6634dff4ca066af0a43ad1cfb3c46.zip |
Learning about forms, POST, validation and AJAX in Laravel.
Diffstat (limited to 'app/Http/Controllers')
-rw-r--r-- | app/Http/Controllers/PagesController.php | 8 |
1 files changed, 8 insertions, 0 deletions
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'; |