mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-04 19:55:05 +02:00
49 lines
881 B
PHP
49 lines
881 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Actions\Http\Admin\Dump;
|
|
|
|
use App\Actions\Http\DownloadAction;
|
|
use App\Constants\Config\DumpConstants;
|
|
use App\Models\Admin\Dump;
|
|
use Illuminate\Support\Facades\Config;
|
|
|
|
/**
|
|
* Class DumpDownloadAction.
|
|
*
|
|
* @extends DownloadAction<Dump>
|
|
*/
|
|
class DumpDownloadAction extends DownloadAction
|
|
{
|
|
/**
|
|
* Create a new action instance.
|
|
*
|
|
* @param Dump $dump
|
|
*/
|
|
public function __construct(Dump $dump)
|
|
{
|
|
parent::__construct($dump);
|
|
}
|
|
|
|
/**
|
|
* Get the path of the resource in storage.
|
|
*
|
|
* @return string
|
|
*/
|
|
protected function path(): string
|
|
{
|
|
return $this->model->path;
|
|
}
|
|
|
|
/**
|
|
* The name of the disk.
|
|
*
|
|
* @return string
|
|
*/
|
|
public function disk(): string
|
|
{
|
|
return Config::get(DumpConstants::DISK_QUALIFIED);
|
|
}
|
|
}
|