File: D:/HostingSpaces/pietvanmierlo/stempelbv.nl/app/Komma/Forms/FormRoutes.php
<?php
namespace App\Komma\Forms;
use App\Komma\Jobs\JobController;
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('vacancy/process', JobController::class . '@process')->name('vacancy.process');
Route::get('vacancy/success', JobController::class . '@success')->name('vacancy.success');
}
}