I am using Laravel 6.0 and I try to list all my routes with artisan route:list, but it fails and returns:
Illuminate\\Contracts\\Container\\
In my case same error occurred because of forward slash / but it should be backward slash \ in defining route,
it happens when you have controller in folder like as in my case controller was in api Folder, so always use backward slash \ while mentioning controller name.
see example:
Error-prone code:
Route::apiResource('categories', 'api/CategoryController');
Route::apiResource('categories', 'api\CategoryController');