Added seeders and seeder folder structure.

This commit is contained in:
Lukas Halbritter
2018-09-10 11:36:51 +02:00
parent dd184c227f
commit 7008b54f2c
15 changed files with 273 additions and 21 deletions
@@ -0,0 +1,38 @@
<?php
use Illuminate\Database\Seeder;
use Carbon\Carbon;
class ScopesTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
DB::table('scopes')->insert([
[
'name' => 'Ideeller Bereich',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Zweckbetrieb',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Vermögensverwaltung',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
],
[
'name' => 'Wirtschaftlicher Geschäftsbetrieb',
'created_at' => Carbon::now()->format('Y-m-d H:i:s'),
'updated_at' => Carbon::now()->format('Y-m-d H:i:s')
]
]);
}
}