hash = [ 'filename' => $filename, 'hash_crc32' => $crc32, 'hash_sha1' => $sha1, 'verified' => $verified ]; else if( ( $hash = HashesHelpers::findHashes( $sha1 ) ) !== null ) $this->hash = [ 'filename' => $hash->filename, 'hash_crc32' => $hash->crc32, 'hash_sha1' => $hash->sha1, 'verified' => HashesHelpers::getReferenceName( $hash->dat_reference_id ) ]; else $this->hash = [ 'filename' => $filename, 'hash_crc32' => $crc32, 'hash_sha1' => $sha1, 'verified' => "No" ]; } /** * Remove the hash. * * @return void */ public function removeHash(): void { $this->hash = null; $this->dispatch('refresh'); } public function render(): View { $entries = collect(); if( $this->hash !== null ){ $entries = EntryHash::where('hash_sha1', $this->hash['hash_sha1'] )->get()->pluck('entry')->filter(); } return view('livewire.hashes-checker', compact('entries')); } }