original_string: public function showLogView()
      {
          $this->subMenu['log']['active'] = true;
  
          $log = Log::getLogger();
  
          $logContents = '';
  
          collect($log->getHandlers())->reject(function ($handler) {
              return $handler instanceof SyslogHandler;
          })->each(function ($handler) use (&$logContents, $log) {
              if (file_exists($path = $log->getHandlers()[0]->getUrl())) {
                  $logContents = file_get_contents($path);
              }
          });
  
          return View::make('dashboard.settings.log')->withLog($logContents)->withSubMenu($this->subMenu);
      }
code: public function showLogView()
      {
          $this->subMenu['log']['active'] = true;
  
          $log = Log::getLogger();
  
          $logContents = '';
  
          collect($log->getHandlers())->reject(function ($handler) {
              return $handler instanceof SyslogHandler;
          })->each(function ($handler) use (&$logContents, $log) {
              if (file_exists($path = $log->getHandlers()[0]->getUrl())) {
                  $logContents = file_get_contents($path);
              }
          });
  
          return View::make('dashboard.settings.log')->withLog($logContents)->withSubMenu($this->subMenu);
      }
code_tokens: public function showLogView ( ) { $ this -> subMenu [ 'log' ] [ 'active' ] = true ; $ log = Log :: getLogger ( ) ; $ logContents = '' ; collect ( $ log -> getHandlers ( ) ) -> reject ( function ( $ handler ) { return $ handler instanceof SyslogHandler ; } ) -> each ( function ( $ handler ) use ( & $ logContents , $ log ) { if ( file_exists ( $ path = $ log -> getHandlers ( ) [ 0 ] -> getUrl ( ) ) ) { $ logContents = file_get_contents ( $ path ) ; } } ) ; return View :: make ( 'dashboard.settings.log' ) -> withLog ( $ logContents ) -> withSubMenu ( $ this -> subMenu ) ; }
docstring: Show the most recent log.
  
  @return \Illuminate\View\View
docstring_tokens: Show the most recent log .