Explorar o código

Untaught trick: avoid the magic facades in web.php.

Frederic G. MARAND %!s(int64=7) %!d(string=hai) anos
pai
achega
2107edcb2f
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      routes/web.php

+ 3 - 2
routes/web.php

@@ -11,8 +11,9 @@
 |
 */
 
-Route::get('/tasks', 'TasksController@index');
-Route::get('/tasks/{task}', 'TasksController@show');
+/** @var \Illuminate\Routing\Router $this */
+$this->get('/tasks', 'TasksController@index');
+$this->get('/tasks/{task}', 'TasksController@show');
 
 /*
 Route::get('/tasks', function () {