Laravel-apidoc-generator: Can I skip not created resouce methods?

Created on 15 Mar 2017  路  1Comment  路  Source: mpociot/laravel-apidoc-generator

Route::resource('test','TestController);
But I created only index function in this controller and other function are not created (create, show, edit, update, destroy).
when I run artisan command, it shows the error:

  [ReflectionException]         
  Method create does not exist 

Most helpful comment

Try this
Route::resource('test', 'TestController', ['only' => ['index']);

>All comments

Try this
Route::resource('test', 'TestController', ['only' => ['index']);

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chinloyal picture chinloyal  路  8Comments

ashokTagtaste picture ashokTagtaste  路  8Comments

usamaa picture usamaa  路  5Comments

Herchelle picture Herchelle  路  8Comments

Jaspur picture Jaspur  路  8Comments