瀏覽代碼

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 () {