22 lines
382 B
PHP
22 lines
382 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class Matching extends Model
|
|
{
|
|
protected $fillable = [];
|
|
protected $guarded = [];
|
|
|
|
public function matchingUser()
|
|
{
|
|
return $this->hasOne(User::class, 'id', 'user_id');
|
|
}
|
|
|
|
public function matchingOtherUser()
|
|
{
|
|
return $this->hasOne(User::class, 'mobile', 'mobile');
|
|
}
|
|
}
|