code: public function getIndex()
      {
          $today = Carbon::today()->format('Y-m-d');
  
          if (Session::has('success') || Session::has('error')) {
              Session::reflash();
          }
  
          return Redirect::to('logviewer/'.$today.'/all');
      }
docs: Redirect to the show page.
  
  @return \Illuminate\Http\Response