Hey, newbie here. Why am I getting error 405 Method not allowed for route that was not defined? I expected to see error 404, right?
Tried to access route "tasks/{task}" with **get **request, but these are my routes and the one I tried isn't defined here.
Route::name('tasks.')->group(function () {
Route::middleware(['auth', 'verified'])->group(function () {
Route::controller(TaskController::class)->group(function () {
Route::get('/tasks', 'index')->name('index');
Route::post('/tasks', 'store')->name('store');
Route::patch('/tasks/{task}', 'finish')->name('finish');
});
});
});
With debug on, I get the message "The GET method is not supported for route tasks/44845. Supported methods: PATCH." and yeah that's true, but should it show 404 then?