FEATURE #2520: add commands for creating new migration and running migrations in modules

This commit is contained in:
Michal Kváček
2017-09-01 23:25:26 +02:00
parent c92ba41def
commit a5b6f6fa0d
22 changed files with 173 additions and 3 deletions
@@ -0,0 +1,31 @@
<?php
namespace Modules\$Module$\Providers;
use App\CMS\Modules\ServiceProviders\ServiceProvider;
/**
* Class $Module$ServiceProvider
*
* Service provider for module $Module$
*
* @package Modules\$Module$\Providers
*/
class $Module$ServiceProvider extends ServiceProvider
{
/**
* Set module Alias
*/
protected function setModuleAlias()
{
$this->alias = strtolower('$module$');
}
/**
* Set path to module
*/
protected function setModulePath()
{
$this->path = __DIR__;
}
}