瀏覽代碼

Update default sub content

Vijayakrishnan Krishnan 5 年之前
父節點
當前提交
843525c40f
共有 1 個文件被更改,包括 5 次插入1 次删除
  1. 5 1
      app/Console/Commands/GenerateTreeCommand.php

+ 5 - 1
app/Console/Commands/GenerateTreeCommand.php

@@ -354,7 +354,11 @@ class GenController {
             $text = str_replace("_ACTION_LINKS_VIEW_", "{$controller->root}/{$controller->parentControllerName}/actions", $text);
         }
         else {
-            $text = str_replace("_SUB_VIEW_", "Content from<br><b>{$controller->root}/{$controller->name}/{$method->name}.blade.php</b>", $text);
+            $text = str_replace("_SUB_VIEW_",
+                "Controller: <b>{$controller->name}</b><br>" .
+                "Action: <b>{$method->name}()</b><br>" .
+                "View: <b>{$controller->root}/{$controller->name}/{$method->name}.blade.php</b><br>",
+                $text);
         }
         return $text;
     }