34 lines
766 B
PHP
34 lines
766 B
PHP
<?php
|
|
|
|
namespace App\Console\Commands;
|
|
|
|
use Illuminate\Console\Command;
|
|
|
|
class PublishTemplateResources extends Command
|
|
{
|
|
/**
|
|
* The name and signature of the console command.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $signature = 'template:publish';
|
|
/**
|
|
* The console command description.
|
|
*
|
|
* @var string
|
|
*/
|
|
protected $description = 'Publish assets and views for currently set template';
|
|
|
|
/**
|
|
* Execute the console command.
|
|
*
|
|
* @return mixed
|
|
*/
|
|
public function handle()
|
|
{
|
|
$this->call('cache:clear');
|
|
$this->call('vendor:publish', ['--tag' => 'module-views', '--force' => true]);
|
|
$this->call('vendor:publish', ['--tag' => 'public-assets', '--force' => true]);
|
|
}
|
|
}
|