28 lines
590 B
PHP
28 lines
590 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
use Illuminate\Database\Eloquent\Factories\HasFactory;
|
|
use Illuminate\Database\Eloquent\Model;
|
|
|
|
class ProfileReport extends Model
|
|
{
|
|
use HasFactory;
|
|
|
|
protected $fillable = ['reporter_id', 'profile_id', 'reason', 'details', 'snapshot', 'screenshot_path', 'status', 'admin_note'];
|
|
|
|
protected $casts = [
|
|
'snapshot' => 'array',
|
|
];
|
|
|
|
public function reporter()
|
|
{
|
|
return $this->belongsTo(User::class, 'reporter_id');
|
|
}
|
|
|
|
public function profile()
|
|
{
|
|
return $this->belongsTo(User::class, 'profile_id');
|
|
}
|
|
}
|