| 12345678910111213141516171819 |
- <?php
- namespace App\Models;
- use Illuminate\Database\Eloquent\Model;
- class MoreRome extends Model
- {
- protected $table = 'love_live_more_rome';
- protected $fillable = [
- 'uid', 'name','file', 'u1','u2','u3', 'u4','u5','u6','description','size','status'
- ];
- public function gifts(){
- return $this->hasMany(MoreRomeGift::class,'lid','id');
- }
- public function user(){
- return $this->hasOne(Users::class,'id','uid')->select('id','name', 'lid', 'avatar','sex','age','vip','trump','opt','city');
- }
- }
|