4

I made Route in my routes->api, but when I do php artisan route:list, it shows me all routes except this route:

Route::apiResources([
    'vh-invoice' => 'API\VhInvoiceController'
]);

Even when I remove some routes its shows me the same route:list, like I, removed these routes below, but in route:list it shows me the removed routes also, as you can see in the image below.

Route::get('findVTI', 'API\TicketInvoiceController@searchVTI');
Route::get('selectVTI', 'API\TicketInvoiceController@selectVTI');

enter image description here

Karl Hill
  • 12,937
  • 5
  • 58
  • 95

1 Answers1

19

You may have your routes cached and need to clear the cache. You can run php artisan route:cache to refresh the cache.

bradforbes
  • 656
  • 4
  • 8