osb/database/seeders/UserTableSeeder.php

90 lines
1.7 KiB
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use App\Models\User;
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;
$o->active = 1;
$o->firstname = 'Wholesaler';
$o->lastname = 'User';
$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;
$o->active = 1;
$o->firstname = 'reseller1-0';
$o->lastname = 'User';
$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;
$o->active = 1;
$o->firstname = 'reseller2-0';
$o->lastname = 'User';
$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;
$o->active = 1;
$o->firstname = 'reseller2-1';
$o->lastname = 'User';
$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;
$o->active = 1;
$o->firstname = 'user1-0-1';
$o->lastname = 'User';
$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;
$o->active = 1;
$o->firstname = 'user2-1-1';
$o->lastname = 'User';
$o->email = 'user2-1-1@example.com';
$o->save();
}
}