Files
animethemes-server/app/Actions/Http/Wiki/Video/Script/ScriptDownloadAction.php
T
2025-07-24 01:22:29 -03:00

40 lines
786 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;
/**
* Class ScriptDownloadAction.
*
* @extends DownloadAction<VideoScript>
*/
class ScriptDownloadAction extends DownloadAction
{
public function __construct(VideoScript $script)
{
parent::__construct($script);
}
/**
* Get the path of the resource in storage.
*/
protected function path(): string
{
return $this->model->path;
}
/**
* The name of the disk.
*/
public function disk(): string
{
return Config::get(VideoConstants::SCRIPT_DISK_QUALIFIED);
}
}