open-soft-app/back-end-generator

Back-end generator: crud generator, Livewire components, scaffold migrations, factory, menu in one command based on database tables

v0.1.0 2024-08-20 13:06 UTC

This package is auto-updated.

Last update: 2024-10-20 15:52:06 UTC


README

Latest Version on Packagist

A livewire CRUD Generation package to help scaffold basic site files. Package is autoloaded as per PSR-4 autoloading in any laravel version ^11.0 so no extra config required. It uses auth middleware thus installs breeze just incase you don't have any other auth mechanism.

Documentation

More detailed documentation can ne found at back-end-generator

Installation

You can install the package via Composer:

composer require open-soft-app/back-end-generator --dev

Usage

After running composer require open-soft-app/back-end-generator command just run:

php artisan crud:install

**This command will perfom below actions:

* Compile css/js based on `tailwind and fontawesome/free`.
* Run `npm install && run dev`
* Flush *node_modules* files from you folder.

Then generate Crud by:

php artisan crud:generate {table-name}

**This command will generate:

* Livewire Component.
* Migration (soon).
* Model.
* Views. 
* Menu (soon).
* Factory.

**Remember to customise your generated factories if you need to use them later

License

The MIT License (MIT). Please see License File for more information.