Files
animethemes-server/app/Actions/Http/Wiki/Video/Script/ScriptDownloadAction.php
T
2025-12-31 00:29:55 -03:00

30 lines
603 B
PHP

<?php
declare(strict_types=1);
namespace App\Actions\Http\Wiki\Video\Script;
use App\Actions\Http\DownloadAction;
use App\Constants\Config\VideoConstants;
use App\Models\Wiki\Video\VideoScript;
use Illuminate\Support\Facades\Config;
/**
* @extends DownloadAction<VideoScript>
*/
class ScriptDownloadAction extends DownloadAction
{
/**
* Get the path of the resource in storage.
*/
protected function path(): string
{
return $this->model->path;
}
public function disk(): string
{
return Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED);
}
}