fznoviar/suitgenerator

Generator for Laravel SuitCMS

dev-master 2017-02-16 06:29 UTC

This package is not auto-updated.

Last update: 2024-11-18 15:51:29 UTC


README

Model, Controller, View Generator from migration for SuitCMS, still alpha version

Installation

First, you'll need to install the package via Composer:

$ composer require fznoviar/suitgenerator

Then, update config/app.php by adding an entry for the service provider.

'providers' => [
    // ...
    Fznoviar\SuitGenerator\SuitGeneratorServiceProvider::class,
];

Use

For generate model from a table,

php artisan suit:model --table=posts

For generate controller from 2 tables,

php artisan suit:controller --table=posts,gallery_categories

For generate view from all tables,

php artisan suit:view --all

For generate whole mvc from a table,

php artisan suit:module --table=posts