mirror of
https://github.com/koel/koel
synced 2024-12-28 05:23:05 +00:00
20 lines
433 B
PHP
20 lines
433 B
PHP
<?php
|
|
|
|
use App\Models\Album;
|
|
use App\Models\Artist;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class AlbumTableSeeder extends Seeder
|
|
{
|
|
public function run()
|
|
{
|
|
Album::firstOrCreate([
|
|
'id' => Album::UNKNOWN_ID
|
|
], [
|
|
'id' => Album::UNKNOWN_ID,
|
|
'artist_id' => Artist::UNKNOWN_ID,
|
|
'name' => Album::UNKNOWN_NAME,
|
|
'cover' => Album::UNKNOWN_COVER,
|
|
]);
|
|
}
|
|
}
|