⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
erp.dev-unit.com
/
database
/
seeders
/
View File Name :
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_workspace = 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 = "Account,Hrm,Stripe,ProductService,Pos,Taskly,Paypal,Lead"; $new_pan->number_of_user = 5; $new_pan->number_of_workspace = 5; $new_pan->is_free_plan = 1; $new_pan->custom_plan = 0; $new_pan->save(); } } }