2017 © Pedro Peláez
 

library laravel-generator

A tool for generate Laravel code file

image

foryoufeng/laravel-generator

A tool for generate Laravel code file

  • HTML
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel Generator , (*1)

Total Downloads Latest Stable Version License , (*2)

Laravel Generator

中文文档

A graphical interface code generator for quickly generating code for Laravel applications., (*3)

Installation

If you have PHP and Composer installed, you can install the Laravel installer via Composer:, (*4)

composer require --dev foryoufeng/laravel-generator

Run the following command to install the code generator:, (*5)

php artisan generator:install

Add the creator's information in the .env file:, (*6)

GENERATOR_AUTHOR=Your Name

Now you can access your application URL http://localhost:8000/laravel-generator to use laravel-generator., (*7)

Configuration file

Publish configuration file, (*8)

php artisan vendor:publish --tag=laravel-generator

generator.php file description:, (*9)

<?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'
    ],
    // Set labels
    'tags' => [
        [
            'name' => 'Controller',
            'path' => 'app/Http/Controllers/Admin/',
            'file' => 'DummyClassController.php',
            'type' => 'primary',
        ],
        [
            'name' => 'Test',
            'path' => 'tests/Unit',
            'file' => 'DummyClassTest.php',
            'type' => 'danger',
        ],
        [
            'name' => 'Vue',
            'path' => 'resources/views/admin/DummySnakeClass/',
            'file' => 'index.vue',
            'type' => 'warning',
        ],
        [
            'name' => 'Request',
            'path' => 'app/Http/Requests/',
            'file' => 'DummyClassRequest.php',
            'type' => 'success',
        ]
    ],
    // Custom parameters
    'customDummys' => [
        'DummyAuthor'=>env('GENERATOR_AUTHOR','system')
    ]
];

Update Log

View changelog for update logs., (*10)

MIT. Please see the license file for more information., (*11)

The Versions

21/07 2018

dev-master

9999999-dev https://github.com/foryoufeng/laravel-generator

A tool for generate Laravel code file

  Sources   Download

MIT

The Requires

 

The Development Requires

laravel laravel-generator

21/07 2018