original_string: protected function addRedirectUrlField()
      {
          $previous = URL::previous();
  
          if (!$previous || $previous == URL::current()) {
              return;
          }
  
          if (Str::contains($previous, url($this->getResource()))) {
              $this->addHiddenField((new Form\Field\Hidden(static::PREVIOUS_URL_KEY))->value($previous));
          }
      }
code: protected function addRedirectUrlField()
      {
          $previous = URL::previous();
  
          if (!$previous || $previous == URL::current()) {
              return;
          }
  
          if (Str::contains($previous, url($this->getResource()))) {
              $this->addHiddenField((new Form\Field\Hidden(static::PREVIOUS_URL_KEY))->value($previous));
          }
      }
code_tokens: protected function addRedirectUrlField ( ) { $ previous = URL :: previous ( ) ; if ( ! $ previous || $ previous == URL :: current ( ) ) { return ; } if ( Str :: contains ( $ previous , url ( $ this -> getResource ( ) ) ) ) { $ this -> addHiddenField ( ( new Form \ Field \ Hidden ( static :: PREVIOUS_URL_KEY ) ) -> value ( $ previous ) ) ; } }
docstring: Add field for store redirect url after update or store.
  
  @return void
docstring_tokens: Add field for store redirect url after update or store .