laravel both get and post route 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']);