Initial Commit
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\Building;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
|
||||
class BuildingSeeder extends Seeder
|
||||
{
|
||||
/**
|
||||
* Run the database seeds.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function run()
|
||||
{
|
||||
$items = [
|
||||
['name' => 'Bygning 7'],
|
||||
['name' => 'Bygning 8'],
|
||||
['name' => 'Test Building'],
|
||||
];
|
||||
foreach ($items as $item) {
|
||||
Building::create($item);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user