當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。