Richard Threepwood Richard Threepwood - 1 year ago 113
PHP Question

Laravel can't find method

I have a

request to:


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
php artisan route:clear

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

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download