Skip to content
This repository has been archived by the owner on Sep 3, 2021. It is now read-only.

Commit

Permalink
修改後台新增商品頁面
Browse files Browse the repository at this point in the history
  • Loading branch information
tad0616 committed May 24, 2019
1 parent 8afcbdb commit dda00bf
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/Admin/Controllers/ProductController.php
Expand Up @@ -67,8 +67,8 @@ public function edit($id, Content $content)
public function create(Content $content)
{
return $content
->header('Create')
->description('description')
->header('新增商品')
->description('請於此頁面建立新商品')
->body($this->form());
}

Expand Down Expand Up @@ -124,11 +124,11 @@ protected function form()
{
$form = new Form(new Product);

$form->text('title', 'Title');
$form->textarea('description', 'Description');
$form->image('image', 'Image');
$form->switch('on_sale', 'On sale')->default(1);
$form->number('price', 'Price');
$form->text('title', '商品名稱');
$form->textarea('description', '商名描述');
$form->image('image', '商品圖');
$form->switch('on_sale', '是否上架')->default(1);
$form->number('price', '價錢');

return $form;
}
Expand Down

0 comments on commit dda00bf

Please sign in to comment.