Преглед на файлове

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

Frederic G. MARAND преди 7 години
родител
ревизия
2107edcb2f
променени са 1 файла, в които са добавени 3 реда и са изтрити 2 реда
  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 () {