Move seed data into separate file with importer; fix admin panel js being broken

This commit is contained in:
Nabeel Shahzad
2017-12-29 17:34:09 -06:00
parent 7cd4bf5ffb
commit 520751b151
17 changed files with 10292 additions and 922 deletions

View File

@@ -1,6 +1,6 @@
<?php
use Illuminate\Database\Migrations\Migration;
use App\Models\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
class CreateRanksTable extends Migration
@@ -24,6 +24,19 @@ class CreateRanksTable extends Migration
$table->unique('name');
});
/**
* Initial required data...
*/
$ranks = [
[
'id' => 1,
'name' => 'New Pilot',
'hours' => 0,
]
];
$this->addData('ranks', $ranks);
}
/**