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
Try this
Route::resource('test', 'TestController', ['only' => ['index']);
Most helpful comment
Try this
Route::resource('test', 'TestController', ['only' => ['index']);