<?php
namespace Nwidart\Modules\Commands;
use Illuminate\Console\Command;
use Nwidart\Modules\Module;
use Nwidart\Modules\Publishing\LangPublisher;
use Symfony\Component\Console\Input\InputArgument;
class PublishTranslationCommand extends Command
{
protected $name = 'module:publish-translation';
protected $description = 'Publish a module\'s translations to the application';
public function handle() : int
{
if ($name = $this->argument('module')) {
$this->publish($name);
return 0;
}
$this->publishAll();
return 0;
}
public function publishAll()