noamanahmed/laravel-api-crud-generator

This is my package laravel-api-crud-generator

1.0.0 2025-04-26 16:07 UTC

This package is auto-updated.

Last update: 2025-06-17 20:55:30 UTC


README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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.