mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
8b6b196c99
* feat: migrate encoding scripts from github to platform * style: fix StyleCI finding * fix: don't concatenate updated videos when attempting to attach entry on video upload * fix(api): fix field dependencies & feat(admin): upload script from video detail screen
38 lines
824 B
PHP
38 lines
824 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace App\Http\Requests\Api\Wiki\Video\Script;
|
|
|
|
use App\Http\Api\Query\Base\EloquentWriteQuery;
|
|
use App\Http\Api\Query\Wiki\Video\Script\ScriptWriteQuery;
|
|
use App\Http\Api\Schema\EloquentSchema;
|
|
use App\Http\Api\Schema\Wiki\Video\ScriptSchema;
|
|
use App\Http\Requests\Api\Base\EloquentRestoreRequest;
|
|
|
|
/**
|
|
* Class ScriptRestoreRequest.
|
|
*/
|
|
class ScriptRestoreRequest extends EloquentRestoreRequest
|
|
{
|
|
/**
|
|
* Get the schema.
|
|
*
|
|
* @return EloquentSchema
|
|
*/
|
|
protected function schema(): EloquentSchema
|
|
{
|
|
return new ScriptSchema();
|
|
}
|
|
|
|
/**
|
|
* Get the validation API Query.
|
|
*
|
|
* @return EloquentWriteQuery
|
|
*/
|
|
public function getQuery(): EloquentWriteQuery
|
|
{
|
|
return new ScriptWriteQuery($this->validated());
|
|
}
|
|
}
|