mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
21 lines
430 B
PHP
21 lines
430 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Album;
|
|
use App\Models\Artist;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class AlbumTableSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
Album::firstOrCreate([
|
|
'id' => Album::UNKNOWN_ID,
|
|
], [
|
|
'artist_id' => Artist::UNKNOWN_ID,
|
|
'name' => Album::UNKNOWN_NAME,
|
|
'cover' => Album::UNKNOWN_COVER,
|
|
]);
|
|
}
|
|
}
|