This package will helps you build as quickly as possible your APIs, using pre-configured traits and resource controllers, see the wiki for more information.
$ composer require julianobailao/laravel-easy-api
Please, see the wiki for the full documentation of this project.
Create a model and configure it has you wish.
class Donkey extends Model
Create a controller, and use the ResourceTrait of this package. Exists one trait for each method from resource controller equivalent, if you want use a especific methods, and not all of then, read about Independent Methods.
class DonkeyController extends Controller
Configure your route like a resource controller:
Route::resource('donkeys', 'DonkeyController', ['except' => ['create', 'edit']]);
You have a resource controller with the index, show, store, update and destroy methods, runing for model Donkey, in the /donkeys route.
The MIT License (MIT). Please see License File for more information.
Support this project and others, via PayPal.