Table seeder for pages
This commit is contained in:
parent
5b06cba327
commit
d3479e77f1
2 changed files with 32 additions and 1 deletions
2
motorradig/.gitignore
vendored
2
motorradig/.gitignore
vendored
|
|
@ -10,3 +10,5 @@ Homestead.json
|
|||
Homestead.yaml
|
||||
npm-debug.log
|
||||
yarn-error.log
|
||||
.idea
|
||||
workspace.xml
|
||||
|
|
|
|||
|
|
@ -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>'
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue