mirror of
https://github.com/koel/koel
synced 2024-12-01 00:09:17 +00:00
22 lines
445 B
PHP
22 lines
445 B
PHP
<?php
|
|
|
|
namespace Database\Factories;
|
|
|
|
use App\Models\Playlist;
|
|
use App\Models\User;
|
|
use Illuminate\Database\Eloquent\Factories\Factory;
|
|
|
|
class PlaylistFactory extends Factory
|
|
{
|
|
protected $model = Playlist::class;
|
|
|
|
/** @return array<mixed> */
|
|
public function definition(): array
|
|
{
|
|
return [
|
|
'user_id' => User::factory(),
|
|
'name' => $this->faker->name,
|
|
'rules' => null,
|
|
];
|
|
}
|
|
}
|