ultimatepos/Modules/ManagementTools/Entities/MtDailyReportComment.php

24 lines
444 B
PHP

<?php
namespace Modules\ManagementTools\Entities;
use App\User;
use Illuminate\Database\Eloquent\Model;
class MtDailyReportComment extends Model
{
protected $table = 'mt_daily_report_comments';
protected $guarded = ['id'];
public function user()
{
return $this->belongsTo(User::class);
}
public function dailyReport()
{
return $this->belongsTo(MtDailyReport::class, 'daily_report_id');
}
}