Package Data | |
---|---|
Maintainer Username: | rayjun |
Maintainer Contact: | rayjun0412@gmail.com (rayjun) |
Package Create Date: | 2015-07-23 |
Package Last Update: | 2015-07-29 |
Language: | PHP |
License: | MIT |
Last Refreshed: | 2024-12-11 15:08:55 |
Package Statistics | |
---|---|
Total Downloads: | 20 |
Monthly Downloads: | 0 |
Daily Downloads: | 0 |
Total Stars: | 12 |
Total Watchers: | 2 |
Total Forks: | 6 |
Total Open Issues: | 0 |
laravel 框架中的 order 组件。
可以直接在命令行中安装:
composer require "rayjun/laravel-order:1.0.*"
或者可以在你项目中 composer.json
中加入以下代码:
"require": {
"rayjun/laravel-order": "1.0.*"
}
然后再执行:
composer update
在完成上面的安装之后,可以在 config/app.php
中的 providers
数组中增加以下代码:
'Rayjun\LaravelOrder\LaravelOrderServiceProvider'
然后增加一行到
'Order' => 'Rayjun\LaravelOrder\Facades\Order',
Order Order::order(array $items, int $user_id);
Order Order::getOrder($order_id);
Collection Order::getUserOrders($user_id);
boolean Order::updateStatus(int $order_id, string $status);
boolean Order::deleteOrder(int $order_id);
OrderItem Order::updateQty(int $item_id, int qty);
float Order::total($order_id);
int Order::count($order_id);
boolean Order::updateOrder($order_id);