基於應用程式的執行環境,採用不同的設定值,通常是很有幫助的。 ... if (App::environment('local', 'staging')) { // 應用程式的當前環境為local 或staging... } ...
確定! 回上一頁