Generates code for simple CRUD operation.

Installs: 4

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/musabbir035/crud

v0.1.0 2023-12-30 15:57 UTC

This package is auto-updated.

Last update: 2025-12-29 03:54:54 UTC


README

This package generates code for simple CRUD operations.

Installation

Require via composer

composer require --dev musabbir035/crud

Usage

Generate code by using the following command

php artisan crud:generate Book

This command generates the model class, controller, validation and migration files. It also appends the routes for the CRUD operations of the created model in the 'routes/web.php' file & runs database migrations.
It also accepts a --fields= option for the fields of the model.

php artisan crud:generate Book --fields="title,author_name"

You will need to create a layout file in resources/views/layouts/main.blade.php. Inside the body tag add @yield('content'). Bootstrap 5 is needed for styling.