pdo_fetchall("select og.id,og.realprice,og.total,g.hascommission,g.nocommission, g.commission1_rate,g.commission1_pay,g.commission2_rate,g.commission2_pay,g.commission3_rate,g.commission3_pay from " . tablename(shop_order_goods') . ' og ' . ' left
HTTP Routing Basic Routing All Laravel routes are defined in the app/Http/routes.phpfile, which is automatically loaded by the framework.路由都被放在routes.php檔案中,laravel架構會自動載入此檔案。 The most basic Laravel routes simply accept a URI and a Closure,
執行composer install遇到錯誤:Your requirements could not be resolved to an installable set of packages. 這是因為不匹配composer.json要求的版本。 完整錯誤如下: vagrant@homestead:/usr/share/nginx/html/laravel-blog$
本文翻譯自: Tinker with the Data in Your Laravel Apps with Php Artisan Tinker 今天,我們將通過介紹Laravel 中一個不太為人所知的功能,來展示如何快捷的調試資料庫中的資料。通過使用 Laravel artisan 內建的 php artisan tinker , 我們可以很方便的看到資料庫中的資料並且執行各種想要的操作。 Laravel artisan 的 tinker 是一個 REPL
簡介 SPL是Standard PHP Library(PHP標準庫)的縮寫。 The Standard PHP Library (SPL) is a collection of interfaces and classes that are meant to solve common problems. 官網說,SPL是用來解決典型問題(common problems)的一組介面與類的集合。 那麼,什麼是common problems呢? - 資料結構
Monolog sends your logs to files, sockets, inboxes, databases and various web services. Monolog 發送你的日誌到檔案、到sockets、到郵箱、到資料庫或(和)者其他網路儲存服務(雲)。Monolog可以做到同時儲存到一個或多個儲存介質(後面的棧冒泡處理)。 安裝 $ composer require monolog/monolog 基本用法 (