dev-master
9999999-dev http://photv.netA command hmvc laravel and lumen
MIT
The Requires
- php ^7.0.2
- lapcs/commands 1.3.x-dev
by lavacs
A command hmvc laravel and lumen
Laravel/lumen | laravel-modules/lumen-modules |
---|---|
5.6 | ^dev |
lapcs/commands
is a Laravel or lumen package which created to manage your large Laravel or lumen app using modules. Module is like a Laravel or lumen package, it has some views, controllers,helper,component (vuejs) or models. This package is supported and tested in Laravel 5.* or lumen 5.*, (*1)
With one big added bonus that the original package didn't have: tests., (*2)
To install through Composer, by run the following command:, (*3)
``` bash composer require lapcs/commands:1.3.x-dev, (*4)
## Lumen config ``` bash //bootstrap\app.php Add : $app->register(Lapcs\Commands\CommandServiceProvider::class);
``` bash //config\app.php 'providers' => [ ... Lapcs\Commands\CommandServiceProvider::class, ], (*5)
## Setup HMVC ``` Create HMVC module // Create folder Modules default to app\Modules php artisan ans:setup // Add ModuleServiceProvider to config // Laravel : config\app.php 'providers' => [ ... App\Modules\ModuleServiceProvider::class, ] // Lumen : bootstrap\app.php Add : $app->register(App\Modules\ModuleServiceProvider::class); // Make module : Ex Master php artisan ans:module master // Make ExController in module Master php artisan ans:controller master Ex OR php artisan ans:controller master ExController // Make Request php artisan ans:request master MasterRequest ... to help command php artisan ans:help
``` Create HMVC module php artisan ans:help, (*6)
## Publish config
php artisan vendor:publish --tag=config
```, (*7)
The package will automatically register a service provider and alias., (*8)
Optionally, publish the package's configuration file by running:, (*9)
Tip: don't forget to run composer dump-autoload
afterwards., (*10)
You'll find installation instructions and full documentation on : comming son...., (*11)
lapcs command is a freelance web developer specialising on the Laravel/lumen framework., (*12)
The MIT License (MIT). Please see License File for more information., (*13)
A command hmvc laravel and lumen
MIT