Table seeder for pages

This commit is contained in:
tschneider 2020-01-31 10:48:35 +01:00
parent 5b06cba327
commit d3479e77f1
2 changed files with 32 additions and 1 deletions

View file

@ -10,3 +10,5 @@ Homestead.json
Homestead.yaml
npm-debug.log
yarn-error.log
.idea
workspace.xml

View file

@ -11,6 +11,35 @@ class DatabaseSeeder extends Seeder
*/
public function run()
{
// $this->call(UsersTableSeeder::class);
$this->command->info('Running DatabaseSeeder');
DB::table('pagecontents')->insert([
'page' => 'ueber_uns',
'body' => '<h1>Das alte Problem: Die Sonne scheint und Dein Motorrad ruft, doch alle Deine Freunde sind plötzlich verhindert.</h1>'
]);
DB::table('pagecontents')->insert([
'page' => 'aktuelles',
'body' => '<h1>Der neue Tourplan 2019 ist Online</h1>'
]);
DB::table('pagecontents')->insert([
'page' => 'links',
'body' => '<h1></h1>http://www.bmw-motorrad.de<br/>http://motorrad.suzuki.de/</h1>'
]);
DB::table('pagecontents')->insert([
'page' => 'impressum',
'body' => '<h1>Impressum<br/>
Motorrad-IG<br/>
c/o Ross Walsh<br/>
Neckar Str. 23<br/>
45219 Essen<br/>
Fax : 032221067777<br/>
Email: motorradig (at) aol.com<br/>
<br/>
© bei Motorrad-IG 2009</h1>'
]);
}
}