eyewill/tucle-builder

There is no license information available for the latest version (0.1.1) of this package.

Tucle Builder

0.1.1 2017-11-16 04:06 UTC

This package is auto-updated.

Last update: 2024-04-06 23:41:13 UTC


README

This package for laravel 5.3, for 5.2 is here.

インストール (install)

$ composer require eyewill/tucle-builder:dev-master

... and append to config/app.php

  'providers' => [
    ...
    Eyewill\TucleBuilder\TucleBuilderServiceProvider::class,
    ...
  ],

使い方 (How to use)

モジュールを作成

$ php artisan make:module モジュール名

モジュールに対応するテーブルを予め作成しておく必要があります

テーブルの例

モジュール名 -> テーブル名
article -> articles
top_article -> top_articles
information -> information

引数

# モジュール名 この名前でモジュールを作成する
$ php artisan make:module top_article

オプション

# --force 強制的に実行
$ php artisan make:module article --force

# --only 指定された要素のみ実行
# 指定可能要素 routes,model,presenter,views,requests
$ php artisan make:module article --only=views,presenter

# --table テーブル名を指定
# 変則的なテーブル名の場合に使用する
$ php artisan make:module article --table=system_article