InfyOmLabs / laravel-generator

API and Admin Panel CRUD Generator for Laravel.
https://www.infyom.com/open-source
MIT License
3.79k stars 813 forks source link

[Feature]: Need to add publish command #86

Open phillipmadsen opened 8 years ago

phillipmadsen commented 8 years ago

ADD: php artisan infyom.publish:publish

Or: php artisan infyom.publish:setup

and add all setup files and views and routes into this one.

Nothing is publishing the common files such as errors.blade.php and such.

_php artisan mitul.generator:publish_ equivalent

phillipmadsen commented 8 years ago

Here is the output of files at present.

|- views
    |- layouts
        |- app.blade.php
    |- emails
        |- password.blade.php
    |- auth
        |- login.blade.php
        |- register.blade.php
        |- reset.blade.php
        |- password.blade.php

Here is what it should possibly look like:

|- views
    |- layouts
        |- app.blade.php
    |- emails
        |- password.blade.php
    |- auth
        |- login.blade.php
        |- register.blade.php
        |- reset.blade.php
        |- password.blade.php
    |- common
        |- errors.blade.php
        |- paginate.blade.php

And example of my current build:

|- views
    |- themes
        |- admin
             |- layouts
                 |- partials
                 |- includes
                 |- app.blade.php
        |- backend
             |- layouts
                 |- partials
                 |- includes
                 |- app.blade.php
        |- frontend
             |- layouts
                 |- partials
                 |- includes
                 |- app.blade.php
    |- emails
        |- password.blade.php
    |- auth
        |- login.blade.php
        |- register.blade.php
        |- reset.blade.php
        |- password.blade.php
    |- common
        |- errors.blade.php
        |- paginate.blade.php