trungpv93/laravel-generator

InfyOm Laravel Generator

dev-develop 2016-10-24 16:10 UTC

README

Total Downloads Monthly Downloads Daily Downloads Latest Stable Version Latest Unstable Version License

Documentation is located here

Installation

"require": {
	...
	"trungpv93/laravel-generator": "5.3.x-dev",
	"laravelcollective/html": "dev-master",
	"doctrine/dbal": "~2.3" //If you want to use Generate from Table option, you need to install
}

Run update compose

composer update

Add Service Providers

Collective\Html\HtmlServiceProvider::class,
Laracasts\Flash\FlashServiceProvider::class, //If Use Flash Notification
Prettus\Repository\Providers\RepositoryServiceProvider::class,
\InfyOm\Generator\InfyOmGeneratorServiceProvider::class,

Add Aliases

'Form'      => Collective\Html\FormFacade::class,
'Html'      => Collective\Html\HtmlFacade::class,
'Flash'     => Laracasts\Flash\Flash::class, //If Use Flash Notification

Publish Vendor

php artisan vendor:publish

Update API Routes

Open app\Providers\RouteServiceProvider.php and update mapApiRoutes method as following:

Route::group([
    'middleware' => 'api',
    'namespace' => $this->namespace."\\API",
    'prefix' => 'api',
    'as' => 'api.',
], function ($router) {
    require base_path('routes/api.php');
});    

Publish

php artisan infyom:publish

Run Publish Layout Command (Option)

php artisan infyom.publish:layout