Пример #1
0
 /**
  * Get the 'return to index' URL.
  *
  * @return string
  */
 protected function getReturnUrl()
 {
     if ($this->resource->category and $this->resource->category->getKey()) {
         return route('category.show', [$this->resource->category->getKey()]);
     }
     return parent::getReturnUrl();
 }