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.

v1.1.1 2022-06-28 19:01 UTC

This package is auto-updated.

Last update: 2024-04-28 23:12:39 UTC


README

REST API based models

GitHub release (latest by date) Packagist Downloads GitHub issues GitHub

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).