NotFoundHttpException in RouteCollection.php line 161: in laravel 5
You have to define only one time the route:
Route::controller('collection','CollectionController');
And then you can go to the routes you declare in functions name of the controller.
Example:
getHome. The route will be collection/home
getPayments. The route will be collection/payments
Well It was pretty simple
In Implicit call
I should define the route only once
Route::controller('collection','CollectionController');
so now in url collection/home if being parsed then laravel will automatically call getHome() function
I was getting the exact same exception message in laravel 5.4.10 and after wasting around 2 hours I found out that routes.php has been removed in 5.3 onward versions and just creating file is not enough. We need to include file in RouteServiceProvider.php file inside "map" function. Adding below line inside map function resolved the issue for me :
require app_path('Http/routes.php');