imzeali / swift-api
1.0.7
2020-03-07 11:59 UTC
Requires
- php: >=7.1.0
- doctrine/dbal: ~2.3
- imzeali/filter-eloquent: ^1.5
- imzeali/finite: ^1.1.5
- laravel/framework: >=5.8
README
A laravel restful api tool
composer require imzeali/swift-api
Then run these commands to publish assets and configļ¼
php artisan vendor:publish --provider="SwiftApi\SwiftApiServiceProvider"
After run command you can find config file in config/api.php, in this file you can change the install directory,db connection or table names.
php artisan swift-api:install
Quick create api
php artisan swift-api:create-api test/tests --route --request --model
Start serve
php artisan serve
Then access http://localhost:8000/api/test/tests
Thank
The project was modified through laravel-admin