���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/zhaagvlk/web.zhaap.com/app__1b5d5ff/Models/Plan.php
���ѧ٧ѧ�
<?php namespace App\Models; use DB; use Illuminate\Database\Eloquent\Model; class Plan extends Model { protected $fillable = [ 'name', 'price', 'duration', 'max_users', 'max_customers', 'max_venders', 'storage_limit', 'description', 'image', 'enable_chatgpt', 'trial', 'trial_days', 'is_disable', ]; public static $arrDuration = [ 'lifetime' => 'Lifetime', 'month' => 'Per Month', 'year' => 'Per Year', ]; public function status() { return [ __('Lifetime'), __('Per Month'), __('Per Year'), ]; } public static function total_plan() { return Plan::count(); } public static function most_purchese_plan() { $free_plan = Plan::where('price', '<=', 0)->first()->id; return User:: select(\DB::raw('count(*) as total'))->where('type', '=', 'company')->where('plan', '!=', $free_plan)->groupBy('plan')->first(); } }
| ver. 1.4 |
Github
|
.
| PHP 8.1.34 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�