code: public function search(Log $log, $level = 'all', Request $request)
      {
          if (is_null($query = $request->get('query')))
              return redirect()->route('admin::foundation.system.log-viewer.logs.show', [$log->date]);
  
          $levels  = $this->logViewer->levelsNames();
          $entries = $log->entries($level)->filter(function (LogEntry $value) use ($query) {
              return Str::contains($value->header, $query);
          })->paginate($this->perPage);
  
          return $this->view('admin.system.log-viewer.show', compact('log', 'levels', 'level', 'query', 'entries'));
      }
docs: Show the log with the search query.
  
  @param  \Arcanedev\LogViewer\Entities\Log  $log
  @param  string                             $level
  @param  \Illuminate\Http\Request           $request
  
  @return \Illuminate\View\View