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


PHP UrlGenerator::previous方法代碼示例

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


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

示例1: __construct

 public function __construct(UrlGenerator $url)
 {
     $this->middleware('auth');
     $this->middleware('permission:dashboard')->only('getIndex');
     $this->prev = $url->previous();
     $this->module = 'admin';
 }
開發者ID:solunes,項目名稱:master,代碼行數:7,代碼來源:AdminController.php

示例2: previous

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

示例3: __construct

 public function __construct(UrlGenerator $url)
 {
     $this->prev = $url->previous();
 }
開發者ID:solunes,項目名稱:master,代碼行數:4,代碼來源:AssetController.php

示例4: back

 /**
  * Create a new redirect response to the previous location.
  *
  * @param  int    $status
  * @param  array  $headers
  * @param  string  $fallback
  * @return \Illuminate\Http\RedirectResponse
  */
 public function back($status = 302, $headers = [], $fallback = false)
 {
     $back = $this->generator->previous($fallback);
     return $this->createRedirect($back, $status, $headers);
 }
開發者ID:illuminate,項目名稱:routing,代碼行數:13,代碼來源:Redirector.php

示例5: previous

 /**
  * Get the URL for the previous request.
  *
  * @param mixed $fallback
  * @return string 
  * @static 
  */
 public static function previous($fallback = false)
 {
     return \Illuminate\Routing\UrlGenerator::previous($fallback);
 }
開發者ID:matthiku,項目名稱:cSpot,代碼行數:11,代碼來源:_ide_helper.php

示例6: __construct

 public function __construct(UrlGenerator $url)
 {
     $this->middleware('guest', ['except' => 'getLogout']);
     $this->prev = $url->previous();
 }
開發者ID:solunes,項目名稱:master,代碼行數:5,代碼來源:LoginController.php

示例7: back

 /**
  * Create a new redirect response to the previous location.
  *
  * @param  int    $status
  * @param  array  $headers
  * @return \Illuminate\Http\RedirectResponse
  */
 public function back($status = 302, $headers = array())
 {
     $back = $this->generator->previous();
     return $this->createRedirect($back, $status, $headers);
 }
開發者ID:fakrunt,項目名稱:itmarkerz,代碼行數:12,代碼來源:Redirector.php

示例8: getLogin

 /**
  * Show the application login form.
  *
  * @return \Illuminate\Http\Response
  */
 public function getLogin(UrlGenerator $urlGenerator, Request $request)
 {
     $redirectUrl = $this->redirectPath = $request->get('redirectUrl', $urlGenerator->previous());
     // common config
     $config = app('xe.config')->get('user.common');
     $loginRuleName = 'login';
     \XeFrontend::rule($loginRuleName, ['email' => 'required|email_prefix', 'password' => 'required']);
     return \XePresenter::make('login', compact('config', 'loginRuleName', 'redirectUrl'));
 }
開發者ID:pokev25,項目名稱:xpressengine,代碼行數:14,代碼來源:AuthController.php

示例9: __construct

 public function __construct(UrlGenerator $url)
 {
     $this->middleware('auth');
     $this->prev = $url->previous();
 }
開發者ID:solunes,項目名稱:master,代碼行數:5,代碼來源:AccountController.php


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