trs_matrimony/app/Models/ReportedUser.php
2024-08-22 09:31:12 +05:30

22 lines
361 B
PHP

<?php
namespace App\Models;
use App\Models\User;
use Illuminate\Database\Eloquent\Model;
class ReportedUser extends Model
{
protected $guarded = [];
public function user()
{
return $this->belongsTo(User::class)->withTrashed();
}
public function reportedBy(){
return $this->belongsTo(User::class, 'reported_by')->withTrashed();
}
}