mirror of
https://github.com/AnimeThemes/animethemes-server.git
synced 2026-07-11 01:24:46 +02:00
40 lines
740 B
PHP
40 lines
740 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Factories\Admin;
|
|
|
|
use App\Models\Admin\Dump;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
use Illuminate\Support\Str;
|
|
|
|
/**
|
|
* Class DumpFactory.
|
|
*
|
|
* @method Dump createOne($attributes = [])
|
|
* @method Dump makeOne($attributes = [])
|
|
*
|
|
* @extends Factory<Dump>
|
|
*/
|
|
class DumpFactory extends Factory
|
|
{
|
|
/**
|
|
* The name of the factory's corresponding model.
|
|
*
|
|
* @var class-string<Dump>
|
|
*/
|
|
protected $model = Dump::class;
|
|
|
|
/**
|
|
* Define the model's default state.
|
|
*
|
|
* @return array<string, mixed>
|
|
*/
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
Dump::ATTRIBUTE_PATH => Str::random(),
|
|
];
|
|
}
|
|
}
|