logOnly(['*']) ->logOnlyDirty(); } /** * Get the task for time log. */ public function task() { return $this->belongsTo('Modules\Project\Entities\ProjectTask', 'project_task_id'); } /** * Get the user for time log. */ public function user() { return $this->belongsTo(\App\User::class, 'user_id'); } /** * Get the user who added time log. */ public function createdBy() { return $this->belongsTo(\App\User::class, 'created_by'); } /** * Return the project for a time log. */ public function project() { return $this->belongsTo('Modules\Project\Entities\Project', 'project_id'); } }