fix : 모델 경로 수정
This commit is contained in:
25
app/Models/Tenants/Plan.php
Normal file
25
app/Models/Tenants/Plan.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user