public function getToolNameAttribute() { $tool = tool::where('tool_uuid', '=', $this->tool_uuid)->first(); return $tool != null ? $tool->name : '?'; }