Laravel 5 added several new helper functions, including: - `view()` - `response()` - `redirect()` - `config()` - `abort()` Review the [helpers][1] documentation for more details. [1]: https://laravel.com/docs/5.0/helpers
@@ -13,8 +13,8 @@ use Illuminate\Http\Request;
|
*/
-if (\Config::get('app.url') !== 'http://localhost') {
- URL::forceRootUrl(\Config::get('app.url'));
+if (config('app.url') !== 'http://localhost') {
+ URL::forceRootUrl(config('app.url'));
}
Route::get('/userselect/{user}', 'Auth\LoginController@setUser')->name('user.set');