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));
        }
    }
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));
        }
    }
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 ) ) ; } }
Add field for store redirect url after update or store.

@return void
Add field for store redirect url after update or store .