laravel routing controller get and post method 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']);