Richard Threepwood Richard Threepwood - 6 days ago 5
PHP Question

Laravel can't find method

I have a

GET
request to:

/review/response


The route is present in the
php artisan route:list
with other two working routes to that controller, so controller is fine.

enter image description here

Here is a part of my controller code:

enter image description here

But when accessing to that route, this is the response I get:

enter image description here

I already run
composer du
and
php artisan route:clear


All other methods in that controller are working, any idea?

Answer

I believe your route should be like:

Route::get('review/response', ['as' => 'review.action', 'uses' => 'App\Http\Controllers\Admin\ReviewController@action']);

The problem is in your namespace. Give it a try.