trungpv93 / laravel-generator
InfyOm Laravel Generator
dev-develop
2016-10-24 16:10 UTC
Requires
- php: >=5.5.9
- illuminate/support: ~5.0
- laracasts/flash: ~2.0
- trungpv93/l5-repository: ^2.6
Requires (Dev)
- mockery/mockery: ~0.9
- phpunit/phpunit: ~5.0
This package is not auto-updated.
Last update: 2024-12-21 21:36:41 UTC
README
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