44 lines
1.7 KiB
PHP
44 lines
1.7 KiB
PHP
<?php
|
|
|
|
/** @noinspection PhpUnused */
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Instrument;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class InstrumentSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
$defaultInstruments = [
|
|
['instrument' => 'Piccolo', 'score_order' => 10],
|
|
['instrument' => 'Flute', 'score_order' => 20],
|
|
['instrument' => 'Oboe', 'score_order' => 30],
|
|
['instrument' => 'Bassoon', 'score_order' => 40],
|
|
['instrument' => 'Eb Clarinet', 'score_order' => 50],
|
|
['instrument' => 'Bb Clarinet', 'score_order' => 60],
|
|
['instrument' => 'Bb Bass Clarinet', 'score_order' => 70],
|
|
['instrument' => 'Eb Contrabass Clarinet', 'score_order' => 80],
|
|
['instrument' => 'Bb Contrabass Clarinet', 'score_order' => 90],
|
|
['instrument' => 'Eb Alto Saxophone', 'score_order' => 100],
|
|
['instrument' => 'Bb Tenor Saxophone', 'score_order' => 110],
|
|
['instrument' => 'Eb Baritone Saxophone', 'score_order' => 120],
|
|
['instrument' => 'Bb Trumpet', 'score_order' => 130],
|
|
['instrument' => 'French Horn', 'score_order' => 140],
|
|
['instrument' => 'Trombone', 'score_order' => 150],
|
|
['instrument' => 'Euphonium BC', 'score_order' => 160],
|
|
['instrument' => 'Euphonium TC', 'score_order' => 170],
|
|
['instrument' => 'Tuba', 'score_order' => 180],
|
|
['instrument' => 'Percussion', 'score_order' => 200],
|
|
['instrument' => 'String Bass', 'score_order' => 300],
|
|
];
|
|
Instrument::insert($defaultInstruments);
|
|
|
|
//
|
|
}
|
|
}
|