koel/database/factories/PlaylistFactory.php

21 lines
413 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;
public function definition(): array
{
return [
'user_id' => User::factory(),
'name' => $this->faker->name,
'rules' => null,
];
}
}