1
0
Fork 0
wow-raid-bingo/app/Console/Commands/InstallLogo.php

37 lines
712 B
PHP

<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
class InstallLogo extends Command
{
/**
* The name and signature of the console command.
*
* @var string
*/
protected $signature = 'install:logo {name}';
/**
* The console command description.
*
* @var string
*/
protected $description = 'install logo';
/**
* Execute the console command.
*
* @return int
*/
public function handle()
{
$filename = $this->argument('name') . '.png';
Storage::disk('resources')->copy('logos/' . $filename, 'images/logo.png');
}
}