skip to Main Content

Laravel handling one contact form for all pages

The typical way of handling the contact form is in the contact page and the route can be: Route::get('/contact', 'AppHttpControllersPageController@contact')->name('contact'); Route::post('/contact', 'AppHttpControllersPageController@formContact')->name('form.contact'); The PageController using the formContact method will handle the validation of the form and can be submitted fine.…

VIEW QUESTION
Back To Top
Search