lararest/restapi-generator
最新稳定版本:v1.1.1
Composer 安装命令:
composer require lararest/restapi-generator
包简介
A laravel package to generate Restful API with Requests & Resources
关键字:
README 文档
README
This package is used to generate laravel restful api with Requests & Resources
Installation
You can install the package via composer:
composer require lararest/laravel-restapi-generator
Publish Configuration File
php artisan vendor:publish --provider="lararest\\RestApiGenerator\RestApiGeneratorServiceProvider" --tag="config" Next, if you plan for cross origin support, you should add middleware to your api middleware group within your app/Http/Kernel.php file: 'ApiHeaderInject' add in env for allow cross origin support API_ALLOW_CROSS_ORIGIN = true for json content type API_JSON_RESPONSE = true
Usage
php artisan api:gen --model=User
Testing
composer test
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email aymannagy.ahmed@gmail.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 13
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-12-05