to('/'); } $user = Auth::getUser(); \App\Checks::postAuth(); Toastr::info('Welcome ' . ($user->realname ?: $user->username)); return view('laravel'); }); Route::post('/ajax/set_resolution', 'AjaxController@setResolution'); // Debugbar routes need to be here because of catch-all if (config('app.env') !== 'production' && config('app.debug')) { Route::get('/_debugbar/assets/stylesheets', [ 'as' => 'debugbar-css', 'uses' => '\Barryvdh\Debugbar\Controllers\AssetController@css' ]); Route::get('/_debugbar/assets/javascript', [ 'as' => 'debugbar-js', 'uses' => '\Barryvdh\Debugbar\Controllers\AssetController@js' ]); Route::get('/_debugbar/open', [ 'as' => 'debugbar-open', 'uses' => '\Barryvdh\Debugbar\Controllers\OpenController@handler' ]); } // Legacy routes Route::any('/api/v0/{path?}', 'LegacyController@api')->where('path', '.*'); Route::any('/{path?}', 'LegacyController@index')->where('path', '.*'); // should never reach this Route::any('/{any?}', function ($any = null) { echo "Failed to find path\n"; echo $any . PHP_EOL; dd($any); })->where('any', '.*');