You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
824 B

1 year ago
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;
class SubscriptionPackage extends Model
{
use HasFactory;
protected $guarded = ['id'];
protected $casts = [
'price'=>'float',
'validity'=>'integer',
'chat'=>'integer',
'review'=>'integer',
'package_id'=>'integer',
'status'=>'integer',
'pos'=>'integer',
'default'=>'integer',
'mobile_app'=>'integer',
'total_package_renewed'=>'integer',
'self_delivery'=>'integer',
'restaurant_id'=>'integer',
'max_order'=>'string',
'max_product'=>'string',
];
public function transactions()
{
return $this->hasMany(SubscriptionTransaction::class, 'package_id');
}
}