attributes['nodeid'])->first(); } public function time() { return date("Y-m-d H:i:s", $this->attributes['datetime']); } }