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