original_string: public function filter()
      {
          $this->updateFilters()
               ->checkActivePage();
  
          $previousUrl = app('url')->previous();
          $previousUrl = $this->removePageQueryFromUrl($previousUrl);
  
          return redirect()->to($previousUrl);
      }
code: public function filter()
      {
          $this->updateFilters()
               ->checkActivePage();
  
          $previousUrl = app('url')->previous();
          $previousUrl = $this->removePageQueryFromUrl($previousUrl);
  
          return redirect()->to($previousUrl);
      }
code_tokens: public function filter ( ) { $ this -> updateFilters ( ) -> checkActivePage ( ) ; $ previousUrl = app ( 'url' ) -> previous ( ) ; $ previousUrl = $ this -> removePageQueryFromUrl ( $ previousUrl ) ; return redirect ( ) -> to ( $ previousUrl ) ; }
docstring: Applies posted filters.
  
  @return mixed
docstring_tokens: Applies posted filters .