for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Encore\Admin\Console;
use Illuminate\Console\Command;
class PublishCommand extends Command
{
/**
* The console command name.
*
* @var string
*/
protected $name = 'admin:publish {--force}';
* The console command description.
protected $description = "re-publish laravel-admin's assets, configuration, language and migration files. If you want overwrite the existing files, you can add the `--force` option";
* Execute the console command.
* @return void
public function handle()
$force = $this->option('force');
$options = ['--provider' => 'Encore\Admin\AdminServiceProvider'];
if ($force == true) {
$options['--force'] = true;
}
$this->call('vendor:publish', $options);
$this->call('view:clear');