Viewing file: PlanSeeder.php (3.04 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
namespace Database\Seeders;
use App\Models\Plan; use Illuminate\Database\Seeder; use Illuminate\Support\Facades\DB; use Illuminate\Support\Carbon;
class PlanSeeder extends Seeder { public function run() { $plans = [ [ 'title' => 'choose a plan', 'cost' => 0, 'recurring_type' => 'onetime', 'table_limit' => 1, 'restaurant_limit' => 1, 'item_limit' => 1, 'status' => 'active', 'item_unlimited' => 'no', 'restaurant_unlimited' => 'no', 'table_unlimited' => 'no', 'pos_system' => 'no', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Basic', 'cost' => 5, 'recurring_type' => 'monthly', 'table_limit' => 5, 'restaurant_limit' => 1, 'item_limit' => 10, 'status' => 'active', 'item_unlimited' => 'no', 'restaurant_unlimited' => 'no', 'table_unlimited' => 'no', 'pos_system' => 'no', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Standard', 'cost' => 50, 'recurring_type' => 'yearly', 'table_limit' => 20, 'restaurant_limit' => 10, 'item_limit' => 100, 'status' => 'active', 'item_unlimited' => 'no', 'restaurant_unlimited' => 'no', 'table_unlimited' => 'no', 'pos_system' => 'yes', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Pro', 'cost' => 99, 'recurring_type' => 'monthly', 'table_limit' => 50, 'restaurant_limit' => 20, 'item_limit' => 500, 'status' => 'active', 'item_unlimited' => 'yes', 'restaurant_unlimited' => 'no', 'table_unlimited' => 'no', 'pos_system' => 'yes', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], [ 'title' => 'Enterprise', 'cost' => 499, 'recurring_type' => 'yearly', 'table_limit' => 0, 'restaurant_limit' => 0, 'item_limit' => 0, 'status' => 'active', 'item_unlimited' => 'yes', 'restaurant_unlimited' => 'yes', 'table_unlimited' => 'yes', 'pos_system' => 'yes', 'created_at' => Carbon::now(), 'updated_at' => Carbon::now(), ], ]; Plan::insert($plans); } }
|