love_php/app/Models/RecommendLinkingNew.php

30 lines
665 B
PHP
Raw Permalink Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class RecommendLinkingNew extends Model
{
protected $fillable = [];
protected $guarded = [];
public function otherUser()
{
return $this->hasOne(User::class, 'id', 'id_users_right');
}
public function user()
{
return $this->hasOne(User::class, 'id', 'id_users_left');
}
public function profileCourtship()
{
return $this->hasOne(ProfileCourtship::class, 'user_id', 'id_users_right');
}
public function recommendLogs()
{
return $this->hasOne(RecommendSingleHistory::class, 'user_id', 'id_users_left');
}
}