love_php/app/Models/Matchmaker.php

27 lines
524 B
PHP
Raw Permalink Normal View History

2026-04-02 09:20:51 +08:00
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use App\Models\Base;
class Matchmaker extends Base
{
protected $fillable = [];
protected $guarded = [];
public function user()
{
return $this->belongsTo(User::class, 'user_id', 'id');
}
public function client()
{
return $this->hasMany(MatchmakerClient::class, 'user_id', 'user_id');
}
public function comment()
{
return $this->hasMany(ClientComment::class, 'maker_user_id', 'user_id');
}
}