noamanahmed / laravel-api-crud-generator
This is my package laravel-api-crud-generator
Fund package maintenance!
NoamanAhmed
Requires
- php: ^8.0
- illuminate/contracts: ^10.0||^11.0||^12.0
- spatie/laravel-package-tools: ^1.16
- spatie/laravel-permission: ^6.17
- spatie/laravel-query-builder: ^6.3
Requires (Dev)
- larastan/larastan: ^2.9||^3.0
- laravel/pint: ^1.14
- nunomaduro/collision: ^7.10.0||^8.1.1
- orchestra/testbench: ^8.22.0||^9.0.0||^10.0.0
- pestphp/pest: ^2.0||^3.0
- pestphp/pest-plugin-arch: ^2.0||^3.0
- pestphp/pest-plugin-laravel: ^2.0||^3.0
- phpstan/extension-installer: ^1.3||^2.0
- phpstan/phpstan-deprecation-rules: ^1.1||^2.0
- phpstan/phpstan-phpunit: ^1.3||^2.0
This package is auto-updated.
Last update: 2025-06-17 20:55:30 UTC
README
Compatibility Matrix
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
Installation
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
Usage
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);
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.