koel/database/factories/PlaylistFactory.php

23 lines
445 B
PHP
Raw Normal View History

<?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;
2020-12-22 20:11:22 +00:00
/** @return array<mixed> */
public function definition(): array
{
return [
'user_id' => User::factory(),
'name' => $this->faker->name,
'rules' => null,
];
}
}