for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Hyde\Console\Commands;
use Hyde\Console\Concerns\Command;
use Hyde\Hyde;
use Illuminate\Support\Facades\Artisan;
/**
* Publish the Hyde Config Files.
*
* @see \Hyde\Framework\Testing\Feature\Commands\UpdateConfigsCommandTest
*/
class PublishConfigsCommand extends Command
{
/** @var string */
protected $signature = 'publish:configs';
protected $description = 'Publish the default configuration files';
public function handle(): int
Artisan::call('vendor:publish', [
'--tag' => 'configs',
'--force' => true,
], $this->output);
$this->infoComment(sprintf('Published config files to [%s]', Hyde::path('config')));
return Command::SUCCESS;
}