Последняя версия с сервера прошлого разработчика
This commit is contained in:
32
app/Domain/Complaints/Models/CommentComplaint.php
Executable file
32
app/Domain/Complaints/Models/CommentComplaint.php
Executable file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Domain\Complaints\Models;
|
||||
|
||||
use App\Models\User;
|
||||
use App\Models\Model;
|
||||
use App\Domain\Comments\Models\Comment;
|
||||
use App\Domain\Complaints\Models\Reason;
|
||||
|
||||
class CommentComplaint extends Model
|
||||
{
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
public function moderator()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'moderator_checking_id');
|
||||
}
|
||||
|
||||
public function reason()
|
||||
{
|
||||
return $this->belongsTo(Reason::class);
|
||||
}
|
||||
|
||||
public function comment()
|
||||
{
|
||||
return $this->belongsTo(Comment::class);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user