giangmv/laravel-api-generator is a Laravel package for a laravel rest api generator with api resources.
It currently has 0 GitHub stars and 35 downloads on Packagist.
Install it with composer require giangmv/laravel-api-generator.
Discover more Laravel packages by giangmv
or browse all Laravel packages to compare alternatives.
Last updated
This package is used to generate laravel api with Resources
You can install the package via composer:
composer require Giangmv/laravel-api-generator
php artisan vendor:publish --provider="Giangmv\LaravelApiGenerator\Providers\RepositoryServiceProvider" --tag="repository-config"
php artisan vendor:publish --provider="Giangmv\LaravelApiGenerator\LaravelApiGeneratorServiceProvider" --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
php artisan api:generate --model=User --module=Users
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.