koel/database/factories/ArtistFactory.php

21 lines
394 B
PHP
Raw Normal View History

<?php
namespace Database\Factories;
use App\Models\Artist;
use Illuminate\Database\Eloquent\Factories\Factory;
class ArtistFactory extends Factory
{
protected $model = Artist::class;
2020-12-22 20:11:22 +00:00
/** @return array<mixed> */
public function definition(): array
{
return [
'name' => $this->faker->name,
2020-12-22 20:11:22 +00:00
'image' => md5(uniqid()) . '.jpg',
];
}
}