ordnael / api-model
Extendable class for REST API based models - instead of the traditional Database based one - that integrates common Laravel's Model class functionalities.
Requires
- php: ^7.3|^8.0
- guzzlehttp/guzzle: ^6.0|^7.0
- illuminate/console: ^8.0|^9.0
- illuminate/contracts: ^8.0|^9.0
- illuminate/database: ^6.0|^7.0|^8.0|^9.0
- illuminate/http: ^6.0|^7.0|^8.0|^9.0
- illuminate/support: ^8.0|^9.0
Requires (Dev)
- phpunit/phpunit: ^8.0|^9.0
This package is auto-updated.
Last update: 2024-04-28 23:12:39 UTC
README
REST API based models
Extendable class for REST API based models that integrates common Laravel's Model class functionalities.
Usage
After running the artisan command to generate your ApiModel, it is necessary to add your endpoints to the respective API class that is generated along with the model.
This is the interface used to manipulate API resources over HTTP requests and is critical for the inner workings of your model. The ApiModel should behave similar to the Model class from Laravel.
Artisan Command
php artisan make:apimodel <name>
Status
Currently in development. Any bugs or feature requests can be opened under Issues (templates are available).