title: Laravel 5.3: Unable to get the route list with php artisan route:list
body: <p>I am using Laravel 5.3 for my project and for my app web services. Everything is working fine and all of my routes are working perfectly. But there is one problem. Whenever I am trying to get the routes list in my console with command <code>php artisan route:list</code> it's showing an error and not showing my route list. Error is:</p>
  
  <pre><code>[Illuminate\Contracts\Container\BindingResolutionException]
  Target [League\OAuth2\Server\Repositories\ClientRepositoryInterface] is not
  instantiable while building [Laravel\Passport\Http\Controllers\AuthorizationController, League\OAuth2\Server\AuthorizationServer].
  </code></pre>
  
  <p>I can't understand what error it is showing. Here is my routes list:</p>
  
  <p><strong>API routes:</strong></p>
  
  <pre><code>use Illuminate\Http\Request;
  
  Route::group(['prefix' =&gt; 'v1'], function () {
  
  Route::group(['middleware'=&gt;['cors']], function(){
      Route::post('/auth','Services\ApiauthController@Authenicates');
      Route::post('/register',['as'=&gt;'register','uses'=&gt;'Services\ApiauthController@Register']);
  });
  Route::get('/dataset/download/{fileName}',['as'=&gt;'dataset.download','uses'=&gt;'Services\ExportDatasetController@downloadFile']);
  
  Route::group(['middleware'=&gt;['auth:api','cors']], function(){
  
      Route::get('/users', function (Request $request) {
          return $request-&gt;user();
      });
      Route::post('/dataset/import',['as'=&gt;'import','uses'=&gt;'Services\ImportdatasetController@uploadDataset']);
  
      Route::get('/dataset/list',['as'=&gt;'list','uses'=&gt;'Services\DatasetsController@getDatasetsList']);
  
      // main\dataset\view-dataset/view-dataset.controller.js  (ViewDatasetController)
      Route::get('/dataset/view/{id}',['as'=&gt;'list','uses'=&gt;'Services\DatasetsController@getDatasets']);
  
      Route::get('/department/list',['as'=&gt;'department.list','uses'=&gt;'Services\DepartmentApiController@departmentList']);
      Route::get('/department/{id}',['as'=&gt;'department.single','uses'=&gt;'Services\DepartmentApiController@singleDepartment']);
      Route::get('/ministry/list',['as'=&gt;'ministry.list','uses'=&gt;'Services\MinistryApiController@ministryList']);
      Route::get('/ministry/{id}',['as'=&gt;'ministry.single','uses'=&gt;'Services\MinistryApiController@singleMinistry']);
      Route::get('/goals/list',['as'=&gt;'goals.list','uses'=&gt;'Services\GoalApiController@goalsList']);
      Route::get('/goals/{id}',['as'=&gt;'goal.single','uses'=&gt;'Services\GoalApiController@singleGoal']);
      Route::get('/dataset/export/{id}',['as'=&gt;'dataset.export','uses'=&gt;'Services\ExportDatasetController@export']);
      Route::get('/schema',['as'=&gt;'Services\SchemaApiController','uses'=&gt;'Services\SchemaApiController@allSchema']);
      // main\goal\view-goal\view-goal.controller.js (line 60)
      Route::get('/goalData/{id}','Services\GoalApiController@goalData');
      Route::post('/store/visual',['as'=&gt;'visualization.store','uses'=&gt;'Services\VisualizationController@store']);
      Route::get('/visual/list',['as'=&gt;'visualization.list','uses'=&gt;'Services\VisualizationController@visualList']);
      Route::get('/visual/{id}',['as'=&gt;'visualization.single','uses'=&gt;'Services\VisualizationController@visualByID']);
      Route::get('/indicators',['as'=&gt;'indicators','uses'=&gt;'Services\IndicatorsController@indicators']);
      // main\page\page.controller.js (line 30)
      Route::get('/pages',['as'=&gt;'pages.list','uses'=&gt;'Services\PagesApiController@getAllPages']);
      Route::get('/pages/{page_slug}',['as'=&gt;'pages.by_slug','uses'=&gt;'Services\PagesApiController@getPageBySlug']);
      Route::get('/dataset/chartdata/{id}',['as'=&gt;'list','uses'=&gt;'Services\DatasetsController@getFormatedDataset']);
      Route::get('/dataset/validate/columns/{id}',['as'=&gt;'validate.columns','uses'=&gt;'Services\ImportdatasetController@getColumns']);
      Route::post('/visual/settings',['as'=&gt;'store.visual.settings','uses'=&gt;'Services\VisualizationController@storeVisualOptionsAndSettings']);
      Route::post('/dataset/savevalidatecolumns',['as'=&gt;'validate.columns','uses'=&gt;'Services\DatasetsController@SavevalidateColumns']);
      Route::get('/dataset/delete/{id}',['as'=&gt;'validate.columns','uses'=&gt;'Services\DatasetsController@deleteDataset']);
      Route::get('/visual/delete/{id}',['as'=&gt;'validate.columns','uses'=&gt;'Services\VisualizationController@deleteVisual']);
  
  });
  });
  </code></pre>
  
  <p><strong>Web routes:</strong></p>
  
  <pre><code>Route::group(['middleware'=&gt;'auth'], function(){
  
  //Role for user
  
  Route::get('/role/create',['as'=&gt;'role.create', 'uses'=&gt;'RoleController@create']);
  Route::post('/role/store', ['as'=&gt;'role.store', 'uses'=&gt;'RoleController@store']);
  Route::get('/roles', ['as'=&gt;'role.list', 'uses'=&gt;'RoleController@index']);
  Route::get('/list_roles', ['as'=&gt;'role.list_role.ajax', 'uses'=&gt;'RoleController@list_role']);
  Route::get('/role/edit/{id}',['as'=&gt;'role.edit', 'uses'=&gt;'RoleController@edit']);
  Route::patch('/role/update/{id}', ['as'=&gt;'role.update', 'uses'=&gt;'RoleController@update']);
  Route::get('/role/delete/{id}', ['as'=&gt;'role.delete', 'uses'=&gt;'RoleController@destroy']);
  
  // permisson
  Route::get('/permisson/create',['as'=&gt;'permisson.create', 'uses'=&gt;'PermissonController@create']);
  Route::post('/permisson/store', ['as'=&gt;'permisson.store', 'uses'=&gt;'PermissonController@store']);
  Route::get('/permisson', ['as'=&gt;'permisson.list', 'uses'=&gt;'PermissonController@index']);
  Route::get('/list_permisson', ['as'=&gt;'permisson.list_role.ajax', 'uses'=&gt;'PermissonController@list_permisson']);
  Route::get('/permisson/edit/{id}',['as'=&gt;'permisson.edit', 'uses'=&gt;'PermissonController@edit']);
  Route::patch('/permisson/update/{id}', ['as'=&gt;'permisson.update', 'uses'=&gt;'PermissonController@update']);
  Route::get('/permisson/delete/{id}', ['as'=&gt;'permisson.delete', 'uses'=&gt;'PermissonController@destroy']);
  
  //Role permisson Setting  'middleware' =&gt; 'roles',
  
  Route::get('/setting/create',['as'=&gt;'setting.create', 'uses'=&gt;'SettingController@create']);
  Route::post('/setting/store', ['as'=&gt;'setting.store', 'uses'=&gt;'SettingController@store']);
  
  
  Route::get('/setting', ['as'=&gt;'setting.list', 'uses'=&gt;'SettingController@index']);
  Route::get('/list_setting', ['as'=&gt;'setting.list_setting', 'uses'=&gt;'SettingController@list_setting']);
  Route::get('/setting/view/{id}', ['as'=&gt;'setting.view', 'uses'=&gt;'SettingController@view']);
  
  Route::get('/setting/edit/{id}',['as'=&gt;'setting.edit', 'uses'=&gt;'SettingController@edit']);
  Route::patch('/setting/update/{id}', ['as'=&gt;'setting.update', 'uses'=&gt;'SettingController@update']);
  Route::get('/permisson/delete/{id}', ['as'=&gt;'permisson.delete', 'uses'=&gt;'PermissonController@destroy']);
  
  
  Route::get('/', ['as'=&gt;'home', 'uses'=&gt;'DashboardController@index']);
  
  /*Routes of Department Operations*/
  Route::get('/departments',['middleware'=&gt;'roles','as'=&gt;'department.list', 'uses'=&gt;'DepartmentController@index']);
  Route::get('/departments/create',['as'=&gt;'department.create', 'uses'=&gt;'DepartmentController@create']);
  Route::post('/department/store',['as'=&gt;'department.store', 'uses'=&gt;'DepartmentController@store']);
  Route::get('/department/delete/{id}',['as'=&gt;'department.delete', 'uses'=&gt;'DepartmentController@destroy']);
  Route::get('/list_depart',['as'=&gt;'department.ajax', 'uses'=&gt;'DepartmentController@get_departments']);
  Route::get('/department/edit/{id}',['as'=&gt;'department.edit', 'uses'=&gt;'DepartmentController@edit']);
  Route::patch('/department/update/{id}',['as'=&gt;'department.update', 'uses'=&gt;'DepartmentController@update']);
  
  /*Routes of Designations Operations*/
  Route::get('/designations',['as'=&gt;'designations.list', 'uses'=&gt;'DesignationController@index']);
  Route::get('/list_desig',['as'=&gt;'designation.ajax', 'uses'=&gt;'DesignationController@indexData']);
  Route::get('/designations/create',['as'=&gt;'designations.create', 'uses'=&gt;'DesignationController@create']);
  Route::post('/designations/store',['as'=&gt;'designations.store', 'uses'=&gt;'DesignationController@store']);
  Route::get('/designations/delete/{id}',['as'=&gt;'designations.delete', 'uses'=&gt;'DesignationController@destroy']);
  Route::get('/designations/edit/{id}',['as'=&gt;'designations.edit', 'uses'=&gt;'DesignationController@edit']);
  Route::patch('/designations/update/{id}',['as'=&gt;'designations.update', 'uses'=&gt;'DesignationController@update']);
  
  /*Routes for ministries operations*/
  Route::get('/ministries',['as'=&gt;'ministries.list','uses'=&gt;'MinistriesController@index']);
  Route::get('/list_minist',['as'=&gt;'ministries.ajax', 'uses'=&gt;'MinistriesController@get_ministries']);
  Route::get('/ministries/create',['as'=&gt;'ministries.create', 'uses'=&gt;'MinistriesController@create']);
  Route::post('/ministries/store',['as'=&gt;'ministries.store', 'uses'=&gt;'MinistriesController@store']);
  Route::get('/ministries/delete/{id}',['as'=&gt;'ministries.delete', 'uses'=&gt;'MinistriesController@destroy']);
  
  /*Routes for goals operations*/
  Route::get('/goals',['as'=&gt;'goals.list','uses'=&gt;'GoalsController@index']);
  Route::get('/list_goals',['as'=&gt;'goals.list.ajax','uses'=&gt;'GoalsController@goalsList']);
  Route::get('/goals/create',['as'=&gt;'goals.create','uses'=&gt;'GoalsController@create']);
  Route::post('/goals/store',['as'=&gt;'goals.store','uses'=&gt;'GoalsController@store']);
  Route::get('/goals/delete/{id}',['as'=&gt;'goals.delete', 'uses'=&gt;'GoalsController@destroy']);
  Route::get('/goals/edit/{id}',['as'=&gt;'goals.edit', 'uses'=&gt;'GoalsController@edit']);
  Route::patch('/goals/update/{id}',['as'=&gt;'goals.update', 'uses'=&gt;'GoalsController@update']);
  
  /*Routes of API users*/
  Route::get('/api_users', ['as'=&gt;'api.users', 'uses'=&gt;'ApiusersController@index']);
  Route::get('/get_users', ['as'=&gt;'api.get_users', 'uses'=&gt;'ApiusersController@get_users']);
  Route::get('/api_users/create', ['as'=&gt;'api.create_users', 'uses'=&gt;'ApiusersController@create']);
  Route::post('/api_users/store', ['as'=&gt;'api.store_users', 'uses'=&gt;'ApiusersController@store']);
  Route::get('/api_users_meta/create', ['as'=&gt;'api.create_users_meta', 'uses'=&gt;'ApiusersController@createUserMeta']);
  Route::post('/api_users_meta/store', ['as'=&gt;'api.store_users_meta', 'uses'=&gt;'ApiusersController@storeUserMeta']);
  Route::get('user_detail/{id}',['as'=&gt;'api.user_detail', 'uses'=&gt;'ApiusersController@userDetail']);
  
  
  /*Routes For API goal schema*/
  Route::get('/schema',['as'=&gt;'schema.list','uses'=&gt;'GoalsSchemaController@index']);
  Route::get('/schema_list',['as'=&gt;'schema.list.ajax','uses'=&gt;'GoalsSchemaController@indexData']);
  Route::get('/schema/create',['as'=&gt;'schema.create','uses'=&gt;'GoalsSchemaController@create']);
  Route::post('/schema/store',['as'=&gt;'schema.store','uses'=&gt;'GoalsSchemaController@store']);
  Route::get('/schema/delete/{id}',['as'=&gt;'schema.delete', 'uses'=&gt;'GoalsSchemaController@destroy']);
  Route::get('/schema/edit/{id}',['as'=&gt;'schema.edit', 'uses'=&gt;'GoalsSchemaController@edit']);
  Route::patch('/schema/update/{id}',['as'=&gt;'schema.update', 'uses'=&gt;'GoalsSchemaController@update']);
  
  /*Routes For goal Targets*/
  Route::get('/target',['as'=&gt;'target.list','uses'=&gt;'GoalsTargetController@index']);
  Route::get('/target_list',['as'=&gt;'target.list.ajax','uses'=&gt;'GoalsTargetController@indexData']);
  Route::get('/target/create',['as'=&gt;'target.create','uses'=&gt;'GoalsTargetController@create']);
  Route::post('/target/store',['as'=&gt;'target.store','uses'=&gt;'GoalsTargetController@store']);
  Route::get('/target/delete/{id}',['as'=&gt;'target.delete', 'uses'=&gt;'GoalsTargetController@destroy']);
  Route::get('/target/edit/{id}',['as'=&gt;'target.edit', 'uses'=&gt;'GoalsTargetController@edit']);
  Route::patch('/target/update/{id}',['as'=&gt;'target.update', 'uses'=&gt;'GoalsTargetController@update']);
  
  /*Routes For goal resources*/
  Route::get('/resource',['as'=&gt;'resource.list','uses'=&gt;'GoalsResourceController@index']);
  Route::get('/resource_list',['as'=&gt;'resource.list.ajax','uses'=&gt;'GoalsResourceController@indexData']);
  Route::get('/resource/create',['as'=&gt;'resource.create','uses'=&gt;'GoalsResourceController@create']);
  Route::post('/resource/store',['as'=&gt;'resource.store','uses'=&gt;'GoalsResourceController@store']);
  Route::get('/resource/delete/{id}',['as'=&gt;'resource.delete', 'uses'=&gt;'GoalsResourceController@destroy']);
  Route::get('/resource/edit/{id}',['as'=&gt;'resource.edit', 'uses'=&gt;'GoalsResourceController@edit']);
  Route::patch('/resource/update/{id}',['as'=&gt;'resource.update', 'uses'=&gt;'GoalsResourceController@update']);
  
  /*Routes For indicators resources*/
  Route::get('/indicators',['as'=&gt;'indicators.list','uses'=&gt;'IndicatorsController@index']);
  Route::get('/indicators_list',['as'=&gt;'indicators.list.ajax','uses'=&gt;'IndicatorsController@indexData']);
  Route::get('/indicators/create',['as'=&gt;'indicators.create','uses'=&gt;'IndicatorsController@create']);
  Route::post('/indicators/store',['as'=&gt;'indicators.store','uses'=&gt;'IndicatorsController@store']);
  Route::get('/indicators/delete/{id}',['as'=&gt;'indicators.delete', 'uses'=&gt;'IndicatorsController@destroy']);
  Route::get('/indicators/edit/{id}',['as'=&gt;'indicators.edit', 'uses'=&gt;'IndicatorsController@edit']);
  Route::patch('/indicators/update/{id}',['as'=&gt;'indicators.update', 'uses'=&gt;'IndicatorsController@update']);
  
  /*Routes For indicators resources*/
  Route::get('/pages',['as'=&gt;'pages.list','uses'=&gt;'PagesController@index']);
  Route::get('/pages_list',['as'=&gt;'pages.list.ajax','uses'=&gt;'PagesController@indexData']);
  Route::get('/pages/create',['as'=&gt;'pages.create','uses'=&gt;'PagesController@create']);
  Route::post('/pages/store',['as'=&gt;'pages.store','uses'=&gt;'PagesController@store']);
  Route::get('/pages/delete/{id}',['as'=&gt;'pages.delete', 'uses'=&gt;'PagesController@destroy']);
  Route::get('/pages/edit/{id}',['as'=&gt;'pages.edit', 'uses'=&gt;'PagesController@edit']);
  Route::patch('/pages/update/{id}',['as'=&gt;'pages.update', 'uses'=&gt;'PagesController@update']);
  
  /*Routes For indicators resources*/
  Route::get('/visualisation',['as'=&gt;'visualisation.list','uses'=&gt;'VisualisationController@index']);
  Route::get('/visualisation_list',['as'=&gt;'visualisation.list.ajax','uses'=&gt;'VisualisationController@indexData']);
  Route::get('/visualisation/create',['as'=&gt;'visualisation.create','uses'=&gt;'VisualisationController@create']);
  Route::post('/visualisation/store',['as'=&gt;'visualisation.store','uses'=&gt;'VisualisationController@store']);
  Route::get('/visualisation/delete/{id}',['as'=&gt;'visualisation.delete', 'uses'=&gt;'VisualisationController@destroy']);
  Route::get('/visualisation/edit/{id}',['as'=&gt;'visualisation.edit', 'uses'=&gt;'VisualisationController@edit']);
  Route::patch('/visualisation/update/{id}',['as'=&gt;'visualisation.update', 'uses'=&gt;'VisualisationController@update']);
  
  /*Routes For datasets resources*/
  Route::get('/dataset',['as'=&gt;'datasets.list','uses'=&gt;'DataSetsController@index']);
  Route::get('/dataset_list',['as'=&gt;'datasets.list.ajax','uses'=&gt;'DataSetsController@indexData']);
  Route::get('/dataset/create',['as'=&gt;'dataset.create','uses'=&gt;'DataSetsController@create']);
  Route::post('/dataset/store',['as'=&gt;'dataset.store','uses'=&gt;'DataSetsController@store']);
  Route::get('/dataset/delete/{id}',['as'=&gt;'datasets.delete', 'uses'=&gt;'DataSetsController@destroy']);
  Route::get('/dataset/edit/{id}',['as'=&gt;'datasets.edit', 'uses'=&gt;'DataSetsController@edit']);
  Route::patch('/dataset/update/{id}',['as'=&gt;'datasets.update', 'uses'=&gt;'DataSetsController@update']);
  
  /*Routes For API goal intervention*/
  Route::get('/intervention',['as'=&gt;'intervention.list','uses'=&gt;'GoalsInterventionController@index']);
  Route::get('/intervention_list',['as'=&gt;'intervention.list.ajax','uses'=&gt;'GoalsInterventionController@indexData']);
  Route::get('/intervention/create',['as'=&gt;'intervention.create','uses'=&gt;'GoalsInterventionController@create']);
  Route::post('/intervention/store',['as'=&gt;'intervention.store','uses'=&gt;'GoalsInterventionController@store']);
  Route::get('/intervention/edit/{id}',['as'=&gt;'intervention.edit', 'uses'=&gt;'GoalsInterventionController@edit']);
  Route::patch('/intervention/update/{id}',['as'=&gt;'intervention.update', 'uses'=&gt;'GoalsInterventionController@update']);
  Route::get('/intervention/delete/{id}',['as'=&gt;'intervention.delete', 'uses'=&gt;'GoalsInterventionController@destroy']);
  
  /*API Config Routes*/
  Route::get('/config' ['as'=&gt;'api.config','uses'=&gt;'ApiConfigController@index']);
  
  
  
  });
  
  Auth::routes();
  Route::get('logout', '\App\Http\Controllers\Auth\LoginController@logout');
  </code></pre>
  
  <p>Can anyone please tell me what is wrong with my code?</p>