update tutorial

This commit is contained in:
Tokumeikoi 2020-02-18 22:28:17 +08:00
parent a56faa7e8e
commit 1b7fc9529f
2 changed files with 4 additions and 1 deletions

View File

@ -12,7 +12,7 @@ class TutorialController extends Controller
public function fetch(Request $request)
{
return response([
'data' => Tutorial::all()
'data' => Tutorial::get()->groupBy('category')
]);
}

View File

@ -162,3 +162,6 @@ ADD `surplus_amount` int(11) NULL COMMENT '剩余价值' AFTER `discount_amount`
ALTER TABLE `v2_order`
ADD `refund_amount` int(11) NULL COMMENT '退款金额' AFTER `surplus_amount`;
ALTER TABLE `v2_tutorial`
ADD `category` varchar(255) COLLATE 'utf8_general_ci' NOT NULL AFTER `description`;