23 lines
393 B
PHP
23 lines
393 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class UserVip extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['vip_id', 'growth_value'];
|
|
|
|
protected $attributes = [
|
|
'growth_value' => 0
|
|
];
|
|
|
|
public function vip()
|
|
{
|
|
return $this->belongsTo(Vip::class, 'vip_id');
|
|
}
|
|
}
|