<?php
namespace App\Forms;
use Illuminate\Support\Facades\Route;
final class FormRoutes
{
/**
* Route that are resolved from the Alias route to Rest Route by the AliasMiddleware.
* Through the controller the models will be bind by Implicit Route Model Binding,
* so no need to add Route::model in here.
*/
public static function web(){
Route::post('contact/process', ContactController::class.'@process')->name('contact.process');
Route::get('contact/success', ContactController::class.'@success')->name('contact.success');
Route::post('advice/process', ContactController::class.'@processAdvice')->name('advice.process');
Route::get('advice/success', ContactController::class.'@successAdvice')->name('advice.success');
}
}