36 lines
807 B
PHP
36 lines
807 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Regions;
|
|
use App\Models\Seeds;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class DatabaseSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Seed the application's database.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// User::factory(10)->create();
|
|
|
|
DB::table('regions')->insert([
|
|
'name' => 'Heidiland',
|
|
]);
|
|
|
|
DB::table('seeds')->insert([
|
|
'uri' => 'https://www.e-domizil.ch/search/632d3fb65adbe?_format=json&adults=1&duration=7',
|
|
'region_id' => 1
|
|
]);
|
|
|
|
DB::table('properties')->insert([
|
|
'property_platform_id' => '12345',
|
|
'seed_id' => 1,
|
|
'check_data' => '12345',
|
|
'last_found' => '2024-01-01'
|
|
]);
|
|
}
|
|
}
|