Repository URL to install this package:
|
Version:
1.0.0 ▾
|
<?php
/**
* Created by PhpStorm.
* User: danilo
* Date: 18/12/15
* Time: 10:56
*/
namespace Modules\Core\Commands;
use Illuminate\Console\Command;
use Symfony\Component\Console\Input\InputArgument;
class PublishThemeAssetsCommand extends Command
{
protected $name = 'webbing:publish:theme';
protected $description = 'Publish theme assets';
public function fire()
{
$theme = $this->argument('theme', null);
$opts = [];
if (!empty($theme)) {
$opts = ['theme' => $this->argument('theme')];
}
$this->call('themes:publish', $opts);
}
protected function getArguments()
{
return [
['theme', InputArgument::OPTIONAL, 'Name of the theme you wish to publish']
];
}
}