First commit
This commit is contained in:
29
app/ReportComment.php
Normal file
29
app/ReportComment.php
Normal file
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace App;
|
||||
|
||||
use App\User;
|
||||
use App\Report;
|
||||
|
||||
use Illuminate\Database\Eloquent\Model;
|
||||
|
||||
class ReportComment extends Model
|
||||
{
|
||||
//
|
||||
protected $fillable = [
|
||||
'report_id',
|
||||
'user_id',
|
||||
'comment',
|
||||
];
|
||||
|
||||
public function reports()
|
||||
{
|
||||
return $this->belongsTo(Report::class);
|
||||
}
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user