项目作者: CUBETIQ

项目描述 :
CUBETIQ Lite Generator for CRUD Application.
高级语言: PHP
项目地址: git://github.com/CUBETIQ/litegen.git
创建时间: 2019-06-03T02:05:05Z
项目社区:https://github.com/CUBETIQ/litegen

开源协议:

下载


Lite Generator Package

Make your new project with pre config data and some scaffold.

Cautious

  • We Recommend u to use this with a brand new project , or it will make a mess to ur exist project
  • We Recommend u to use this with a brand new project , or it will make a mess to ur exist project
  • We Recommend u to use this with a brand new project , or it will make a mess to ur exist project

On this page

  • TOC

Installation Main Project

composer.json

  1. "autoload": {
  2. ...
  3. "psr-4": {
  4. ...
  5. "Cubetiq\\Litegen\\": "[full/path/to/your/clone/package]/cubetiq/litegen/src",
  6. ...
  7. },
  8. ...
  9. },
  1. $ composer install

config/app.php

  1. 'providers' => [
  2. ...
  3. /*
  4. * Lite Generator Provider
  5. */
  6. \Cubetiq\Litegen\provider\LitegenServiceProvider::class
  7. ],
  1. $ php artisan vendor:publish --provider="Cubetiq\Litegen\provider\LitegenServiceProvider"

Edit config/sample.php


Usage

Initialize project

  1. $ php artisan litegen:init [--name=projectname] [--path=project path]

create model

  1. $ php artisan litegen:model [--name=projectname] [--path=project path]

create migration

  1. $ php artisan litegen:migration [--name=projectname] [--path=project path] [--seeder : make seeder and factory]

create controller

  1. $ php artisan litegen:controller [--name=projectname] [--path=project path] [-R : with route] [-I : with view]

Make Your own Default Generate View Template

  1. $ php artisan litegen:myview [--name=projectname] [--path=project path]

Warning :
you should composer dumpauto everytime you generate new class


Generated Project

config/app.php

  1. 'providers' => [
  2. ...
  3. /*
  4. * Interface bind Repository Service Provider
  5. */
  6. \App\Providers\RepositoryInterfaceProvider::class
  7. ],

install composer

  1. $ composer install

run server

  1. $ php artisan serve

Processing

Lite Generator