当前位置: 首页>>代码示例>>PHP>>正文


PHP Session::reflash方法代码示例

本文整理汇总了PHP中Illuminate\Support\Facades\Session::reflash方法的典型用法代码示例。如果您正苦于以下问题:PHP Session::reflash方法的具体用法?PHP Session::reflash怎么用?PHP Session::reflash使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Illuminate\Support\Facades\Session的用法示例。


在下文中一共展示了Session::reflash方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: index

 /**
  * Redirect to the homepage.
  *
  * @return \Illuminate\Http\Response
  */
 public function index()
 {
     Session::flash('', '');
     // work around laravel bug if there is no session yet
     Session::reflash();
     return Redirect::to($this->path);
 }
开发者ID:tangtienviet,项目名称:CMS,代码行数:12,代码来源:PageController.php

示例2: getIndex

 /**
  * Redirect to the show page.
  *
  * @return \Illuminate\Http\Response
  */
 public function getIndex()
 {
     $today = Carbon::today()->format('Y-m-d');
     if (Session::has('success') || Session::has('error')) {
         Session::reflash();
     }
     return Redirect::to('logviewer/' . $today . '/all');
 }
开发者ID:ssomenzi,项目名称:silence,代码行数:13,代码来源:LogViewerController.php

示例3: function

/*
 * This file is part of Laravel Credentials.
 *
 * (c) Graham Campbell <graham@alt-three.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */
use Illuminate\Support\Facades\Config;
use Illuminate\Support\Facades\Redirect;
use Illuminate\Support\Facades\Session;
// send users to the profile page
$router->get('account', ['as' => 'account', function () {
    Session::flash('', '');
    // work around laravel bug if there is no session yet
    Session::reflash();
    return Redirect::route('account.profile');
}]);
// account routes
$router->get('account/history', ['as' => 'account.history', 'uses' => 'AccountController@getHistory']);
$router->get('account/profile', ['as' => 'account.profile', 'uses' => 'AccountController@getProfile']);
$router->delete('account/profile', ['as' => 'account.profile.delete', 'uses' => 'AccountController@deleteProfile']);
$router->patch('account/details', ['as' => 'account.details.patch', 'uses' => 'AccountController@patchDetails']);
$router->patch('account/password', ['as' => 'account.password.patch', 'uses' => 'AccountController@patchPassword']);
// registration routes
if (Config::get('credentials.regallowed')) {
    $router->get('account/register', ['as' => 'account.register', 'uses' => 'RegistrationController@getRegister']);
    $router->post('account/register', ['as' => 'account.register.post', 'uses' => 'RegistrationController@postRegister']);
}
// activation routes
if (Config::get('credentials.activation')) {
开发者ID:abcsun,项目名称:Credentials,代码行数:31,代码来源:routes.php

示例4: getContact

 public function getContact()
 {
     if (Session::has('success')) {
         Session::reflash();
     }
     return view('site.contact');
 }
开发者ID:jagltoro,项目名称:OpenTrujillo,代码行数:7,代码来源:SiteController.php


注:本文中的Illuminate\Support\Facades\Session::reflash方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。