https://github.com/foryoufeng/laravel-generator
laravel-generator / laravel代码生成器
https://github.com/foryoufeng/laravel-generator
codetemplate generator laravel
Last synced: 5 months ago
JSON representation
laravel-generator / laravel代码生成器
- Host: GitHub
- URL: https://github.com/foryoufeng/laravel-generator
- Owner: foryoufeng
- License: mit
- Created: 2018-07-21T06:51:42.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2025-06-02T15:51:21.000Z (about 1 year ago)
- Last Synced: 2025-06-03T04:38:27.307Z (about 1 year ago)
- Topics: codetemplate, generator, laravel
- Language: Blade
- Homepage: https://generator.pp-lang.tech/
- Size: 1.78 MB
- Stars: 70
- Watchers: 4
- Forks: 18
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- Contributing: contributing.md
- License: LICENSE
Awesome Lists containing this project
README
# Laravel Generator
## [中文文档](readme_zh_CN.md)
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:
```bash
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:
```sh
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
```sh
php artisan vendor:publish --tag=laravel-generator
```
`generator.php` file description:
```php
'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](changelog.md) for update logs.
MIT. Please see the [license file](license.md) for more information.
