26 lines
524 B
PHP
26 lines
524 B
PHP
<?php
|
|
|
|
namespace App\Models\Tenants;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
use Illuminate\Database\Eloquent\SoftDeletes;
|
|
|
|
class Plan extends Model
|
|
{
|
|
use SoftDeletes;
|
|
|
|
protected $fillable = [
|
|
'name', 'code', 'description', 'price', 'billing_cycle', 'features', 'is_active',
|
|
];
|
|
|
|
protected $casts = [
|
|
'features' => 'array',
|
|
'is_active' => 'boolean',
|
|
'price' => 'float',
|
|
];
|
|
|
|
public function subscriptions() {
|
|
return $this->hasMany(Subscription::class);
|
|
}
|
|
}
|