ctrlpanel/database/seeders/Seeds/ProductSeeder.php

48 lines
1.2 KiB
PHP
Raw Normal View History

2021-06-05 09:26:32 +00:00
<?php
2021-06-22 15:13:24 +00:00
namespace Database\Seeders\Seeds;
2021-06-05 09:26:32 +00:00
use App\Models\Product;
use Illuminate\Database\Seeder;
class ProductSeeder extends Seeder
{
/**
* Run the database seeds.
*
* @return void
*/
public function run()
{
Product::create([
'name' => 'Starter',
2022-06-16 10:01:53 +00:00
'description' => '64MB Ram, 1GB Disk, 1 Database, 140 credits hourly',
2021-06-05 09:26:32 +00:00
'price' => 140,
'memory' => 64,
'disk' => 1000,
2022-06-16 10:01:53 +00:00
'databases' => 1,
'billing_period' => 'hourly'
2021-06-05 09:26:32 +00:00
]);
Product::create([
'name' => 'Standard',
2022-06-16 10:01:53 +00:00
'description' => '128MB Ram, 2GB Disk, 2 Database, 210 credits hourly',
2021-06-05 09:26:32 +00:00
'price' => 210,
'memory' => 128,
'disk' => 2000,
2022-06-16 10:01:53 +00:00
'databases' => 2,
'billing_period' => 'hourly'
2021-06-05 09:26:32 +00:00
]);
Product::create([
'name' => 'Advanced',
2022-06-16 10:01:53 +00:00
'description' => '256MB Ram, 5GB Disk, 5 Database, 280 credits hourly',
2021-06-05 09:26:32 +00:00
'price' => 280,
'memory' => 256,
'disk' => 5000,
2022-06-16 10:01:53 +00:00
'databases' => 5,
'billing_period' => 'hourly'
2021-06-05 09:26:32 +00:00
]);
}
}