Looking to hire Laravel developers? Try LaraJobs

laravel-generator maintained by trungpv93

Description
InfyOm Laravel Generator
Last update
2016/10/24 18:11 (5.3.x-dev)
License
Links
Downloads
15

Comments
comments powered by Disqus

InfyOm Laravel Generator

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