belongsTo(User::class, 'user_id')->withTrashed(); } public function target() { return $this->belongsTo(User::class, 'target_id')->withTrashed(); } public function action() { return $this->belongsTo(LogAction::class, 'log_action_id'); } public function loggable() { return $this->morphTo()->withTrashed(); } }