for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Nwidart\Modules\Commands;
use Illuminate\Console\Command;
use Nwidart\Modules\Traits\ModuleCommandTrait;
use Symfony\Component\Console\Input\InputArgument;
class UpdateCommand extends Command
{
use ModuleCommandTrait;
/**
* The console command name.
*
* @var string
*/
protected $name = 'module:update';
* The console command description.
protected $description = 'Update dependencies for the specified module or for all modules.';
* Execute the console command.
public function fire()
$this->laravel['modules']->update($name = $this->getModuleName());
$this->info("Module [{$name}] updated successfully.");
}
* Get the console command arguments.
* @return array
protected function getArguments()
return array(
array('module', InputArgument::OPTIONAL, 'The name of module will be updated.'),
);