New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

tantee/laravel-model-api

Expose all models as CRUD, search and query API
1,116
Install
composer require tantee/laravel-model-api
Latest Version:1.0.10.1
PHP:^7.4|^8.0
Laravel:8 · 9
License:MIT
Last Updated:Mar 21, 2023
Links: GitHub  ·  Packagist
Maintainer: tantee

Expose all models as CRUD, search and query API

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.

Related Packages

tantee/laravel-generic-api

Expose controllers as RESTful API

1,315 0
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

651,963,193 9,701
laravel/framework

The Laravel Framework.

610,364,751 34,988
laravel/tinker

Powerful REPL for the Laravel framework.

518,004,183 7,444
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

435,097,283 607

Version History

Version Released PHP Laravel License
1.0.10.1 ^7.4|^8.0 ^8|^9 MIT
1.0.10 ^7.4|^8.0 ^8|^9 MIT
1.0.9.1 ^7.4|^8.0 ^8|^9 MIT
1.0.9 ^7.4|^8.0 ^8|^9 MIT
1.0.8 ^7.4|^8.0 ^8|^9 MIT