trungpv93 / laravel-generator by trungpv93
forked from InfyOmLabs/laravel-generator

InfyOm Laravel Generator
15
0
2
Package Data
Maintainer Username: trungpv93
Maintainer Contact: me@mitul.me (Mitul Golakiya)
Package Create Date: 2016-10-24
Package Last Update: 2016-10-24
Home Page: http://labs.infyom.com/laravelgenerator/
Language: PHP
License: MIT
Last Refreshed: 2024-11-19 03:16:27
Package Statistics
Total Downloads: 15
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 2
Total Forks: 0
Total Open Issues: 0

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)

```sh
php artisan infyom.publish:layout