getUrlGenerator() 공개 메소드

Get the URL generator instance.
public getUrlGenerator ( ) : UrlGenerator
리턴 UrlGenerator
 /**
  * Get the URL to redirect to on a validation error.
  *
  * @return string
  */
 protected function getRedirectUrl()
 {
     $url = $this->redirector->getUrlGenerator();
     if ($this->redirect) {
         return $url->to($this->redirect);
     } elseif ($this->redirectRoute) {
         return $url->route($this->redirectRoute);
     } elseif ($this->redirectAction) {
         return $url->action($this->redirectAction);
     }
     return $url->previous();
 }
예제 #2
0
 /**
  * Get the URL generator instance.
  *
  * @return \Illuminate\Routing\UrlGenerator 
  * @static 
  */
 public static function getUrlGenerator()
 {
     return \Illuminate\Routing\Redirector::getUrlGenerator();
 }