ctrlpanel/database/seeders/ProductSeeder.php
2021-06-05 11:26:32 +02:00

44 lines
1 KiB
PHP

<?php
namespace Database\Seeders;
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',
'description' => '64MB Ram, 1GB Disk, 1 Database, 140 credits p/m',
'price' => 140,
'memory' => 64,
'disk' => 1000,
'databases' => 1
]);
Product::create([
'name' => 'Standard',
'description' => '128MB Ram, 2GB Disk, 2 Database, 210 credits p/m',
'price' => 210,
'memory' => 128,
'disk' => 2000,
'databases' => 2
]);
Product::create([
'name' => 'Advanced',
'description' => '256MB Ram, 5GB Disk, 5 Database, 280 credits p/m',
'price' => 280,
'memory' => 256,
'disk' => 5000,
'databases' => 5
]);
}
}