Initialer Laravel Commit für BetiX
This commit is contained in:
26
app/Models/DirectMessageReport.php
Normal file
26
app/Models/DirectMessageReport.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class DirectMessageReport extends Model
|
||||
{
|
||||
protected $fillable = [
|
||||
'reporter_id',
|
||||
'message_id',
|
||||
'reason',
|
||||
'details',
|
||||
'status',
|
||||
];
|
||||
|
||||
public function reporter()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'reporter_id');
|
||||
}
|
||||
|
||||
public function message()
|
||||
{
|
||||
return $this->belongsTo(DirectMessage::class, 'message_id');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user