imzeali / swift-api
Installs: 92
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/imzeali/swift-api
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