From 3dac9828c8bfe4c37aa5c84dbe35ddd7af7ed815 Mon Sep 17 00:00:00 2001 From: Shift Date: Sat, 19 Mar 2022 13:54:34 +0000 Subject: [PATCH] Convert to new helper methods 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 --- routes/web.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routes/web.php b/routes/web.php index 8f6bfd5f..eb15c823 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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');