做法
在 app 資料夾新增 helpers.php 檔,例如:
| 1 | if (! function_exists('env')) { | 
修改 composer.json 檔,以自動加載指定檔案:
| 1 | { | 
執行以下指令,以更新自動加載內容。
| 1 | composer dump-autoload | 
在 app 資料夾新增 helpers.php 檔,例如:
| 1 | if (! function_exists('env')) { | 
修改 composer.json 檔,以自動加載指定檔案:
| 1 | { | 
執行以下指令,以更新自動加載內容。
| 1 | composer dump-autoload |