tantee / laravel-model-api
Expose all models as CRUD, search and query API
Fund package maintenance!
tantee
Requires
- php: ^7.4|^8.0
- illuminate/contracts: ^8|^9
- laravel/helpers: ^1.4
- spatie/laravel-package-tools: ^1.1
- tantee/laravel-generic-api: ^1.0
- tantee/laravel-searchy-fork: ^2.0
- tantee/php-utilities: ^1.0
Requires (Dev)
- orchestra/testbench: ^6.0
- phpunit/phpunit: ^9.3
- psalm/plugin-laravel: ^1.4
- spatie/laravel-ray: ^1.9
- vimeo/psalm: ^4.4
README
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.