本文整理汇总了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);
}
示例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');
}
示例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')) {
示例4: getContact
public function getContact()
{
if (Session::has('success')) {
Session::reflash();
}
return view('site.contact');
}