Ekapp/skolehjem/database/seeds/GuidesCategoriesSeeder.php

29 lines
567 B
PHP

<?php
use Illuminate\Database\Seeder;
class GuidesCategoriesSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$GuidesCategoriesdata = [
[
'guidesCategoryName' => 'Ingen Kategori'
]
];
foreach ($GuidesCategoriesdata as $data) {
$GuidesCategory = new \App\GuidesCategory();
$GuidesCategory->guidesCategoryName = $data["guidesCategoryName"];
$GuidesCategory->save();
}
}
}