예제 #1
0
 /**
  * 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
0
 /**
  * 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
0
/*
 * This file is part of Laravel Credentials.
 *
 * (c) Graham Campbell <*****@*****.**>
 *
 * 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
0
 public function getContact()
 {
     if (Session::has('success')) {
         Session::reflash();
     }
     return view('site.contact');
 }