meobda-website/database/seeders/MeobdaData2526.php

66 lines
2.9 KiB
PHP

<?php
namespace Database\Seeders;
use App\Models\SiteDataItem;
use Illuminate\Database\Seeder;
class MeobdaData2526 extends Seeder
{
public function run(): void
{
$defaults = [
['key' => 'concertClinicDates', 'value' => 'February 2-3, 2026', 'type' => 'string'],
['key' => 'concertClinicLocation', 'value' => 'Oologah High School', 'type' => 'string'],
['key' => 'beginnerClinicDates', 'value' => 'April 7, 2026', 'type' => 'string'],
['key' => 'beginnerClinicLocation', 'value' => 'Wagoner High School', 'type' => 'string'],
['key' => 'concertAuditionDate', 'value' => 'January 12, 2026', 'type' => 'string'],
['key' => 'concertAuditionLocation', 'value' => 'Wagoner High School', 'type' => 'string'],
['key' => 'concertEntryDeadline', 'value' => 'December 19, 2025', 'type' => 'string'],
['key' => 'beginnerEntryDeadline', 'value' => 'March 13, 2026', 'type' => 'string'],
[
'key' => 'officers',
'value' => json_encode([
['office' => 'President', 'name' => 'Keysto Stotz', 'school' => 'Skiatook'],
['office' => 'Vice President', 'name' => 'Jon Matthews', 'school' => 'Oologah'],
['office' => 'Secretary', 'name' => 'Kate Aldridge', 'school' => 'Wagoner'],
['office' => 'Treasurer & Audition Coordinator', 'name' => 'Matt Young', 'school' => 'Vinita'],
]),
'type' => 'json',
],
[
'key' => 'concertEnsembles',
'value' => json_encode([
['name' => 'High School Band', 'chair' => 'Bruce Thompson', 'clinician' => ''],
['name' => 'Junior High Band', 'chair' => 'Doug Finley', 'clinician' => ''],
['name' => '7th Grade Band', 'chair' => 'Tyler Reeves', 'clinician' => ''],
]),
'type' => 'json',
],
[
'key' => 'beginnerEnsembles',
'value' => json_encode([
['name' => 'First & Second Year A', 'chair' => 'Renee Roberts', 'clinician' => ''],
['name' => 'First & Second Year B', 'chair' => 'Madison West', 'clinician' => ''],
['name' => 'First & Second Year C', 'chair' => 'Denton Bodine', 'clinician' => ''],
]),
'type' => 'json',
],
[
'key' => 'jazzEnsembles',
'value' => json_encode([
['name' => 'Jazz Band', 'chair' => 'Eric Noble', 'clinician' => ''],
]),
'type' => 'json',
],
];
foreach ($defaults as $item) {
SiteDataItem::updateOrCreate(
['key' => $item['key']],
['value' => $item['value'], 'type' => $item['type']]
);
}
}
}