Archived
1
0
Fork 0
This repository has been archived on 2026-06-16. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
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');
}
}