Skip to content

A powerful generator to create fully structured Laravel API CRUD operations — including index, store, show, update, destroy, multi-delete, import/export, dropdowns, constants, and analytics endpoints — all following clean service-based architecture.

License

Notifications You must be signed in to change notification settings

noamanahmed/laravel-api-crud-generator

Repository files navigation

This is my package laravel-api-crud-generator

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.

About

A powerful generator to create fully structured Laravel API CRUD operations — including index, store, show, update, destroy, multi-delete, import/export, dropdowns, constants, and analytics endpoints — all following clean service-based architecture.

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages