wmlc/laravel-generator 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wmlc/laravel-generator

Composer 安装命令:

composer require wmlc/laravel-generator

包简介

A tool for generate Laravel code file

README 文档

README

Latest Stable Version Total Downloads License

中文文档

laravel-generator is administrative interface builder for laravel which can help you build code template you want as soon as possiable.

Requirements

  • PHP >= 7.0.0
  • Laravel >= 5

For GUI

laravel-generator

More Docs

Installation

Via Composer

composer require --dev foryoufeng/laravel-generator

If you do not run Laravel 5.5 (or higher), then add the service provider in config/app.php:

Foryoufeng\Generator\GeneratorServiceProvider::class

Then run the command to install the generator

php artisan generator:install

you may also need install the package barryvdh/laravel-ide-helper,if you do not install it

composer require --dev barryvdh/laravel-ide-helper

After run command you can find config file in config/generator.php,and now you can access your application http://yourhost/generator to use the laravel-generator

After the installation is complete, the project generates templates such as model, controllers and views by default. Other templates can be added or modified according to the actual needs of the project.

templates

laravel-generator

Usage

the generator.php doc

<?php

return [
    'name' => 'Laravel-generator',
    //the url to access
    'route'=>'generator',//you can change the access url if you do not like it
     //the rule  can be used by the field  , You can define the format of the fields you need.
      'rules'=>[
          'string',
          'email',
          'file',
          'numeric',
          'array',
          'alpha',
          'alpha_dash',
          'alpha_num',
          'date',
          'boolean',
          'distinct',
          'phone',
      ],
];

stub

You can define the format of the stub you need followed by my rules,such as

laravel-generator

more stub

https://github.com/foryoufeng/generator-templates

Notice

Only Chinese and English are supported by laravel generator now

Change log

Please see the changelog for more information on what has changed recently.

Contributing

Please see contributing.md for details and a todolist.

Security

If you discover any security related issues, please email foryoufeng@gmail.com instead of using the issue tracker.

License

MIT. Please see the license file for more information.

统计信息

  • 总下载量: 4
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 18
  • 开发语言: Blade

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-10-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固