tantee/laravel-model-api

Expose all models as CRUD, search and query API

1.0.10.1 2023-03-21 22:10 UTC

README

Latest Version on Packagist Total Downloads

This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.

Installation

You can install the package via composer:

composer require tantee/laravel-model-api

You can publish and run the migrations with:

php artisan vendor:publish --provider="TaNteE\LaravelModelApi\LaravelModelApiServiceProvider" --tag="laravel-model-api-migrations"
php artisan migrate

You can publish the config file with:

php artisan vendor:publish --provider="TaNteE\LaravelModelApi\LaravelModelApiServiceProvider" --tag="laravel-model-api-config"

This is the contents of the published config file:

return [
  'route-prefix' => 'api',
  'route-middleware' => ['api'],
];

Usage

All of models can be exposed as API with CRUD functions. Complete manual will be written soon.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.