mirror of
https://github.com/koel/koel
synced 2024-12-19 17:13:09 +00:00
20 lines
394 B
PHP
20 lines
394 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Artist;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class ArtistFactory extends Factory
|
|
{
|
|
protected $model = Artist::class;
|
|
|
|
/** @return array<mixed> */
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'name' => $this->faker->name,
|
|
'image' => md5(uniqid()) . '.jpg',
|
|
];
|
|
}
|
|
}
|