當前位置: 首頁>>代碼示例>>PHP>>正文


PHP UrlGenerator::full方法代碼示例

本文整理匯總了PHP中Illuminate\Routing\UrlGenerator::full方法的典型用法代碼示例。如果您正苦於以下問題:PHP UrlGenerator::full方法的具體用法?PHP UrlGenerator::full怎麽用?PHP UrlGenerator::full使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Illuminate\Routing\UrlGenerator的用法示例。


在下文中一共展示了UrlGenerator::full方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: isPage

 /**
  * Return true if current page is $page.
  */
 public function isPage(string $page, array $parameters = []) : bool
 {
     // Check if $page is a route name
     if ($this->route->has($page)) {
         if ($parameters) {
             return $this->url->current() == $this->url->route($page, $parameters);
         }
         return $this->route->currentRouteName() == $page;
     }
     return str_replace($this->request->root() . '/', '', $this->url->full()) == $page;
 }
開發者ID:atorscho,項目名稱:laravel-helpers,代碼行數:14,代碼來源:Assertions.php

示例2: full

 /**
  * Get the full URL for the current request.
  *
  * @return string 
  * @static 
  */
 public static function full()
 {
     return \Illuminate\Routing\UrlGenerator::full();
 }
開發者ID:satriashp,項目名稱:tour,代碼行數:10,代碼來源:_ide_helper.php

示例3: guest

 /**
  * Create a new redirect response, while putting the current URL in the session.
  *
  * @param  string  $path
  * @param  int     $status
  * @param  array   $headers
  * @param  bool    $secure
  * @return \Illuminate\Http\RedirectResponse
  */
 public function guest($path, $status = 302, $headers = [], $secure = null)
 {
     $this->session->put('url.intended', $this->generator->full());
     return $this->to($path, $status, $headers, $secure);
 }
開發者ID:illuminate,項目名稱:routing,代碼行數:14,代碼來源:Redirector.php

示例4: createSelfLink

 /**
  * Creates self links to the currently called Resource with, or without the provided Query Strings.
  *
  * @param bool $withQueryStrings    Decides if Query Strings should be attached as well, or not
  * @return array
  */
 public function createSelfLink($withQueryStrings = false)
 {
     return $this->createLink('self', $withQueryStrings ? $this->url->full() : $this->request->url());
 }
開發者ID:noherczeg,項目名稱:restext,代碼行數:10,代碼來源:RestLinker.php

示例5: redirect

 /**
  * When a filter is triggered, this method saves the intended URL to
  * the lock and returns a redirect to the lock login URL.
  * 
  * @return Illuminate\Http\RedirectResponse
  */
 protected function redirect()
 {
     $this->lock->setIntended($this->url->full());
     return $this->redirector->route('l4-lock.login');
 }
開發者ID:codenamegary,項目名稱:l4-lock,代碼行數:11,代碼來源:LockFilter.php


注:本文中的Illuminate\Routing\UrlGenerator::full方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。