Parcourir la source

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
Shift il y a 3 ans
Parent
commit
3dac9828c8
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      routes/web.php

+ 2 - 2
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');
 Route::get('/userselect/{user}', 'Auth\LoginController@setUser')->name('user.set');