File: //proc/self/cwd/app/Models/SubscriptionPlan.php
<?php
namespace App\Models;
use App\Models\BaseModel;
class SubscriptionPlan extends BaseModel
{
protected $table = 'subscription_plans';
protected $default = ['id', 'xid', 'name', 'description', 'modules', 'default'];
protected $guarded = ['id', 'created_at', 'updated_at', 'default'];
protected $hidden = ['id'];
protected $appends = ['xid'];
protected $filterable = ['id', 'name'];
protected $hashableGetterFunctions = [];
protected $casts = [
'modules' => 'array',
'features' => 'array',
'annual_price' => 'double',
'monthly_price' => 'double',
'max_products' => 'integer',
'is_popular' => 'integer',
'is_private' => 'integer',
'duration' => 'integer',
'notify_before' => 'integer',
'position' => 'integer',
];
}