Files
SkinbaseNova/.deploy/artwork-evolution-release/app/Models/PostReport.php
2026-04-18 17:02:56 +02:00

30 lines
555 B
PHP

<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\Relations\BelongsTo;
class PostReport extends Model
{
protected $table = 'post_reports';
protected $fillable = [
'post_id',
'reporter_user_id',
'reason',
'message',
'status',
];
public function post(): BelongsTo
{
return $this->belongsTo(Post::class);
}
public function reporter(): BelongsTo
{
return $this->belongsTo(User::class, 'reporter_user_id');
}
}