osb/database/seeders/UserTableSeeder.php

84 lines
1.6 KiB
PHP
Raw Permalink Normal View History

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;
2021-06-29 03:18:52 +00:00
use App\Models\User;
2018-07-06 06:57:49 +00:00
class UserTableSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
$o = new User;
$o->id = 1;
2022-02-01 09:15:11 +00:00
$o->site_id = 254;
2018-07-06 06:57:49 +00:00
$o->language_id = 1;
$o->country_id = 61;
2018-07-10 03:42:17 +00:00
$o->active = 1;
$o->firstname = 'Wholesaler';
$o->lastname = 'User';
2018-07-06 06:57:49 +00:00
$o->email = 'wholesaler@example.com';
$o->save();
$o = new User;
$o->id = 10;
2022-02-01 09:15:11 +00:00
$o->site_id = 254;
2018-07-06 06:57:49 +00:00
$o->language_id = 1;
$o->country_id = 61;
2018-07-10 03:42:17 +00:00
$o->active = 1;
$o->firstname = 'reseller1-0';
$o->lastname = 'User';
2018-07-06 06:57:49 +00:00
$o->email = 'reseller1-0@example.com';
$o->save();
$o = new User;
$o->id = 11;
2022-02-01 09:15:11 +00:00
$o->site_id = 254;
2018-07-06 06:57:49 +00:00
$o->language_id = 1;
$o->country_id = 61;
2018-07-10 03:42:17 +00:00
$o->active = 1;
$o->firstname = 'reseller2-0';
$o->lastname = 'User';
2018-07-06 06:57:49 +00:00
$o->email = 'reseller2-0@example.com';
$o->save();
$o = new User;
$o->id = 110;
2022-02-01 09:15:11 +00:00
$o->site_id = 254;
2018-07-06 06:57:49 +00:00
$o->language_id = 1;
$o->country_id = 61;
2018-07-10 03:42:17 +00:00
$o->active = 1;
$o->firstname = 'reseller2-1';
$o->lastname = 'User';
2018-07-06 06:57:49 +00:00
$o->email = 'reseller2-1@example.com';
$o->save();
$o = new User;
$o->id = 1010;
2022-02-01 09:15:11 +00:00
$o->site_id = 254;
2018-07-06 06:57:49 +00:00
$o->language_id = 1;
$o->country_id = 61;
2018-07-10 03:42:17 +00:00
$o->active = 1;
$o->firstname = 'user1-0-1';
$o->lastname = 'User';
2018-07-06 06:57:49 +00:00
$o->email = 'user1-0-1@example.com';
$o->save();
$o = new User;
$o->id = 1110;
2022-02-01 09:15:11 +00:00
$o->site_id = 254;
2018-07-06 06:57:49 +00:00
$o->language_id = 1;
$o->country_id = 61;
2018-07-10 03:42:17 +00:00
$o->active = 1;
$o->firstname = 'user2-1-1';
$o->lastname = 'User';
2018-07-06 06:57:49 +00:00
$o->email = 'user2-1-1@example.com';
$o->save();
}
}