dingo / api

A RESTful API package for the Laravel and Lumen frameworks.
BSD 3-Clause "New" or "Revised" License
9.33k stars 1.25k forks source link

Support for 'apiResource()' #1676

Closed xitianfz closed 5 years ago

xitianfz commented 5 years ago
Q A
Bug? no
New Feature? yes
Framework Laravel
Framework version 5.8.34
Package version 2.3.0
PHP version 7.3.3

Please support Route::apiResource():

$api->apiResource('foo', 'FooController');
specialtactics commented 5 years ago

Sure, I will take a look when I have a bit more time.

exninja commented 5 years ago

I've been using the following for my resource controllers without a hitch since I migrated to using dingo a week ago:

$api->resource('foo', FooController');

specialtactics commented 5 years ago

Yeh, that is actually in the Dingo router, so not sure what else there would be to do on this, closing.