Laravel Version | Package Version | Status 8.x | 1.x | Supported 9.x | 1.x | Supported 10.x | 1.x | Supported 11.x (beta) | 1.x | In Development
You can install the package via composer:
composer require noamanahmed/laravel-api-crud-generator
You can publish the config and provider file with this command:
php artisan vendor:publish --tag="api-crud-generator-provider"
php artisan vendor:publish --tag="api-crud-generator-stubs"
php artisan api-crud-generator:init
php artisan api-crud-generator:create Post
php artisan api-crud-generator:create Comment
php artisan api-crud-generator:delete Comment
Modify your routes files
use App\Http\Controllers\PostController;
Route::apiCrudResource('posts', PostController::class);
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.