当前位置: 首页>>代码示例>>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;未经允许,请勿转载。