30 lines
412 B
PHP
30 lines
412 B
PHP
<?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);
|
|
}
|
|
|
|
}
|