laravel route post request code example
Example: laravel routing controller get and post method
Route::match(['GET', 'POST'], '/page-name', [App\Http\Controllers\NameController::class, 'index']);
Route::match(['GET', 'POST'], '/page-name', [App\Http\Controllers\NameController::class, 'index']);