suryahadiningrat/crud-generator

CRUD Generator for laravel included Controller, Model, Request, Repository, Resource

dev-main 2025-02-18 10:49 UTC

This package is auto-updated.

Last update: 2025-07-19 11:20:05 UTC


README

crud-generator is a Laravel library that helps you generate CRUD (Create, Read, Update, Delete) operations automatically from a migration file.

Features

  • Automatically generate Model, Controller, Routes, and Views from a migration file.
  • Creating resource, request, repository, and models
  • Easy to use with an Artisan command.
  • Highly customizable.

Installation

1. Add the Library to Your Project

If the library is published on Packagist, you can install it using:

composer require suryahadiningrat/crud-generator

Usage

1. Register service provider

Register service provider in boostrap/app.php:

$app->register(\Suryahadiningrat\CrudGenerator\CrudGeneratorServiceProvider::class);

2. Running CRUD Generator

Run the CRUD Generator with:

php artisan crud-generator:generate --migration=CHANGE_WITH_YOUR_MIGRATION_RELATIVE_PATH