mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-09-09 22:23:19 +02:00
* 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
40 lines
798 B
PHP
40 lines
798 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories\Wiki\Video;
|
|
|
|
use App\Models\Wiki\Video\VideoScript;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* Class VideoScriptFactory.
|
|
*
|
|
* @method VideoScript createOne($attributes = [])
|
|
* @method VideoScript makeOne($attributes = [])
|
|
*
|
|
* @extends Factory<VideoScript>
|
|
*/
|
|
class VideoScriptFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var class-string<VideoScript>
|
|
*/
|
|
protected $model = VideoScript::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
VideoScript::ATTRIBUTE_PATH => Str::random(),
|
|
];
|
|
}
|
|
}
|