Created shared hosting seeder
Created shared hosting seeder
This commit is contained in:
parent
479d66ee68
commit
9db3af4bd1
|
@ -23,5 +23,6 @@ class DatabaseSeeder extends Seeder
|
||||||
$this->call(LabelsSeeder::class);
|
$this->call(LabelsSeeder::class);
|
||||||
$this->call(DomainsSeeder::class);
|
$this->call(DomainsSeeder::class);
|
||||||
$this->call(ServersSeeder::class);
|
$this->call(ServersSeeder::class);
|
||||||
|
$this->call(SharedSeeder::class);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,27 +9,54 @@ use Illuminate\Support\Str;
|
||||||
|
|
||||||
class SharedSeeder extends Seeder
|
class SharedSeeder extends Seeder
|
||||||
{
|
{
|
||||||
/**
|
|
||||||
* Run the database seeds.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
public function run()
|
public function run()
|
||||||
{
|
{
|
||||||
/*$shared = [
|
|
||||||
|
$id = Str::random(8);
|
||||||
|
|
||||||
|
$shared = [
|
||||||
[
|
[
|
||||||
"id" => Str::random(8),
|
"id" => $id,
|
||||||
"domain" => "node",
|
"active" => 1,
|
||||||
"extension" => "ai",
|
"main_domain" => "node.ai",
|
||||||
"provider_id" => 58,
|
"shared_type" => "Direct Admin",
|
||||||
"price" => 9.99,
|
"has_dedicated_ip" => 0,
|
||||||
"currency" => 'USD',
|
"ip" => null,
|
||||||
"payment_term" => 4,
|
"bandwidth" => 3000,
|
||||||
"owned_since" => '2013-01-12',
|
"disk" => 45,
|
||||||
"next_due_date" => Carbon::now()->addDays(30)->format('Y-m-d')
|
"disk_type" => 'GB',
|
||||||
|
"disk_as_gb" => 45,
|
||||||
|
"domains_limit" => 10,
|
||||||
|
"subdomains_limit" => 10,
|
||||||
|
"ftp_limit" => 5,
|
||||||
|
"email_limit" => 5,
|
||||||
|
"db_limit" => 2,
|
||||||
|
"provider_id" => 90,
|
||||||
|
"location_id" => 71,
|
||||||
|
"owned_since" => Carbon::now()->subDays(220),
|
||||||
|
"created_at" => Carbon::now(),
|
||||||
|
"updated_at" => Carbon::now(),
|
||||||
]
|
]
|
||||||
];
|
];
|
||||||
|
|
||||||
DB::table('shareds')->insert($shared);*/
|
DB::table('shared_hosting')->insert($shared);
|
||||||
|
|
||||||
|
$pricing = [
|
||||||
|
[
|
||||||
|
"service_id" => $id,
|
||||||
|
"active" => 1,
|
||||||
|
"service_type" => 2,
|
||||||
|
"currency" => "USD",
|
||||||
|
"price" => 60.00,
|
||||||
|
"term" => 4,
|
||||||
|
"as_usd" => 60.00,
|
||||||
|
"usd_per_month" => 5.00,
|
||||||
|
"next_due_date" => Carbon::now()->addDays(12)->format('Y-m-d'),
|
||||||
|
"created_at" => Carbon::now(),
|
||||||
|
"updated_at" => Carbon::now(),
|
||||||
|
]
|
||||||
|
];
|
||||||
|
|
||||||
|
DB::table('pricings')->insert($pricing);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user