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
This commit is contained in:
Shift 2022-03-19 13:54:34 +00:00
parent 297c2bb30f
commit 3dac9828c8
No known key found for this signature in database
GPG key ID: 5A96F038425C5A1C

View file

@ -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');