Route::prefix('admin')->group(function () { Route::get('/editcategory/{$id}', [CategoryContoller::class, 'edit'])->whereNumber('id')->name('editcategory'); });
This Code gives me a 404 Not Found. But without parameter page is showing.
i think you most remove "$" from route
Route::get('/editcategory/{id}')