foryoufeng/laravel-generator
| Install | |
|---|---|
composer require foryoufeng/laravel-generator |
|
| Latest Version: | v4.0.1 |
| License: | MIT |
| Last Updated: | Jun 4, 2025 |
| Links: | GitHub · Packagist |
Laravel Generator
中文文档
A graphical interface code generator for quickly generating code for Laravel applications.
Installation
If you have PHP and Composer installed, you can install the Laravel installer via Composer:
composer require --dev foryoufeng/laravel-generator
Run the following command to install the code generator:
php artisan generator:install
Add the creator's information in the .env file:
GENERATOR_AUTHOR=Your Name
Now you can access your application URL http://localhost:8000/laravel-generator to use laravel-generator.
Configuration file
Publish configuration file
php artisan vendor:publish --tag=laravel-generator
generator.php file description:
<?php
return [
'name' => 'Laravel Generator',
// the url to access
'route'=>'laravel-generator',
// Define rules
'rules' => [
'string',
'email',
'file',
'numeric',
'array',
'alpha',
'alpha_dash',
'alpha_num',
'date',
'boolean',
'distinct',
'phone',
'custom'
],
// Custom parameters
'custom_keys'=>[
'author'=>env('GENERATOR_AUTHOR','system')
]
];
Update Log
View changelog for update logs.
MIT. Please see the license file for more information.
Related Packages
Model, controller, provider and service generator for Lumen 5+ and Angular 6+ fr...
Model, controller, provider and service generator for Lumen 5+ and Angular 6+ fr...
Model, controller, provider and service generator for Lumen 5+ from DB schema
Speeds up Laravel development by automating repetitive tasks. This package helps...
Version History
| Version | Released | Laravel | License |
|---|---|---|---|
| v4.0.1 | ~9.0| | MIT | |
| v4.0.0 | ~9.0| | MIT | |
| v3.1.1 | ~9.0| | MIT | |
| v3.1 | ~9.0| | MIT | |
| v3.0 | ~9.0| | MIT | |
| v2.7 | ^5.0| | MIT | |
| v2.6 | ^5.0| | MIT | |
| v2.5 | ^5.0| | MIT | |
| v2.4 | ^5.0| | MIT | |
| v2.3 | ^5.0| | MIT | |
| v2.2 | ^5.0| | MIT | |
| v2.1 | ^5.0| | MIT | |
| 2.0.1 | ^5.0 | MIT | |
| 2.0.0 | ^5.0 | MIT | |
| 1.0.0 | ^5.5 | MIT |