foryoufeng / laravel-generator
A tool for generate Laravel code file
Installs: 2 680
Dependents: 0
Suggesters: 0
Security: 0
Stars: 70
Watchers: 4
Forks: 18
Open Issues: 0
Language:Blade
Requires
- doctrine/dbal: ^4.2
- laravel/framework: ~9.0||~10.0||~11.0||~12.0
Requires (Dev)
- roave/security-advisories: dev-latest
README
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.