Jream has some excellent tutorials on Youtube covering jquery Aja,x you should review them before doing anything else.
I use Ajax with Laravel it Works Superb :)
Your Routes only Accepts GET not POST data where you're currenlty sending POST data.
Change this
Route::get('ean', function() { return view('pages.hotels.ean'); });
to
Route::post('ean', function() { return view('pages.hotels.ean'); });
beanmoss said:
If you know how to use ajax in html/php, there's no difference when using it on laravel. Good thing is you can use Laravel's route() helper so the url on your ajax will get the correct path.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community