osb/database/seeders/UserTableSeeder.php

90 lines
1.7 KiB
PHP
Raw 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;
$o->site_id = 1;
$o->language_id = 1;
$o->country_id = 61;
$o->currency_id = 6;
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;
$o->site_id = 1;
$o->language_id = 1;
$o->country_id = 61;
$o->currency_id = 6;
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;
$o->site_id = 1;
$o->language_id = 1;
$o->country_id = 61;
$o->currency_id = 6;
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;
$o->site_id = 1;
$o->language_id = 1;
$o->country_id = 61;
$o->currency_id = 6;
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;
$o->site_id = 1;
$o->language_id = 1;
$o->country_id = 61;
$o->currency_id = 6;
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;
$o->site_id = 1;
$o->language_id = 1;
$o->country_id = 61;
$o->currency_id = 6;
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();
}
}