yassinedabbous / laravel-generex
Customizable Laravel Code Generator with templates for CRUD, Validation, Policies, Events, Notifications, API & views
v2.2.1
2025-02-04 10:25 UTC
Requires
- php: >=7.4
- laravel/framework: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
README
Laravel Generex
Customizable Laravel Code Generator with templates.
✨ Features
- Generating packages with CRUD from a ready DB table or a schema file.
- Everything is customizable.
- Support for plain stub & blade engine
- Templates are yours, No forced structure.
🔻 Installation
composer require yassinedabbous/laravel-generex
🧑💻 Usage
Artisan command:
php artisan gen:pack {TableName}
-
If you didn't define a table name you will be asked you to choose one from the list.
-
Full command options:
php artisan gen:pack {TableName} --vendor={YourName} --package={PackageName} --connection={mysql}
⚙️ Configuration
-
Publish configuration:
php artisan vendor:publish --tag=generex-config
-
Publish templates:
php artisan vendor:publish --tag=generex-templates