24 lines
447 B
PHP
24 lines
447 B
PHP
|
|
<?php
|
||
|
|
|
||
|
|
namespace App\Models;
|
||
|
|
|
||
|
|
use Illuminate\Database\Eloquent\Model;
|
||
|
|
use App\Models\Base;
|
||
|
|
|
||
|
|
|
||
|
|
class MatchingSingleHistory extends Model
|
||
|
|
{
|
||
|
|
protected $fillable = [];
|
||
|
|
protected $guarded = [];
|
||
|
|
|
||
|
|
public function other_single_profile()
|
||
|
|
{
|
||
|
|
return $this->belongsTo(ProfileCourtship::class, 'other_user_id', 'user_id');
|
||
|
|
}
|
||
|
|
|
||
|
|
public function otherUser()
|
||
|
|
{
|
||
|
|
return $this->hasOne(User::class, 'id', 'other_user_id');
|
||
|
|
}
|
||
|
|
}
|