Files
BetiX/app/Models/ProfileReport.php
Dolo 0280278978
Some checks failed
linter / quality (push) Has been cancelled
tests / ci (8.4) (push) Has been cancelled
tests / ci (8.5) (push) Has been cancelled
Initialer Laravel Commit für BetiX
2026-04-04 18:01:50 +02:00

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');
}
}