70208d2157
Shift automatically applies the Laravel coding style - which uses the PSR-12 coding style as a base with some minor additions. You may customize the code style applied by configuring [Pint](https://laravel.com/docs/pint), [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), or [PHP CodeSniffer](https://github.com/squizlabs/PHP_CodeSniffer) for your project root. For more information on customizing the code style applied by Shift, [watch this short video](https://laravelshift.com/videos/shift-code-style).
45 lines
1 KiB
PHP
45 lines
1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders\Seeds;
|
|
|
|
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 monthly',
|
|
'price' => 140,
|
|
'memory' => 64,
|
|
'disk' => 1000,
|
|
'databases' => 1,
|
|
]);
|
|
|
|
Product::create([
|
|
'name' => 'Standard',
|
|
'description' => '128MB Ram, 2GB Disk, 2 Database, 210 credits monthly',
|
|
'price' => 210,
|
|
'memory' => 128,
|
|
'disk' => 2000,
|
|
'databases' => 2,
|
|
]);
|
|
|
|
Product::create([
|
|
'name' => 'Advanced',
|
|
'description' => '256MB Ram, 5GB Disk, 5 Database, 280 credits monthly',
|
|
'price' => 280,
|
|
'memory' => 256,
|
|
'disk' => 5000,
|
|
'databases' => 5,
|
|
]);
|
|
}
|
|
}
|