2018-07-06 06:57:49 +00:00
|
|
|
<?php
|
|
|
|
|
2021-06-30 01:06:20 +00:00
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2018-07-06 06:57:49 +00:00
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
use App\Models\Site;
|
|
|
|
|
|
|
|
class SiteTableSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*
|
|
|
|
* @return void
|
|
|
|
*/
|
|
|
|
public function run()
|
|
|
|
{
|
2021-06-30 04:00:41 +00:00
|
|
|
// Test Sites 254 & 255
|
2018-07-06 06:57:49 +00:00
|
|
|
$o = new Site;
|
2021-06-30 04:00:41 +00:00
|
|
|
$o->id = 254;
|
|
|
|
// $o->date_orig
|
|
|
|
$o->active = TRUE;
|
2021-07-02 00:03:36 +00:00
|
|
|
$o->site_id = 254;
|
2018-07-06 06:57:49 +00:00
|
|
|
$o->country_id = 61;
|
|
|
|
$o->language_id = 1;
|
2021-06-30 04:00:41 +00:00
|
|
|
$o->currency_id = 6;
|
|
|
|
$o->url = 'test1';
|
2021-07-02 00:03:36 +00:00
|
|
|
//$o->admin_id;
|
|
|
|
|
2021-06-30 04:00:41 +00:00
|
|
|
$o->save();
|
|
|
|
|
|
|
|
// Test Sites 254 & 255
|
|
|
|
$o = new Site;
|
|
|
|
$o->id = 255;
|
|
|
|
// $o->date_orig
|
2021-07-02 00:03:36 +00:00
|
|
|
$o->site_id = 255;
|
2021-06-30 04:00:41 +00:00
|
|
|
$o->active = TRUE;
|
|
|
|
$o->country_id = 61;
|
|
|
|
$o->language_id = 1;
|
|
|
|
$o->currency_id = 6;
|
|
|
|
$o->url = 'test2';
|
2021-07-02 00:03:36 +00:00
|
|
|
// $o->admin_id;
|
|
|
|
|
2018-07-06 06:57:49 +00:00
|
|
|
$o->save();
|
|
|
|
}
|
|
|
|
}
|