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 26, 2019
1 parent 21130e0 commit 199e5a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/Http/Controllers/ProductController.php
Expand Up @@ -47,7 +47,8 @@ public function store(Request $request)
*/
public function show($id)
{
//
$product = Product::find($id);
return view('product.show', compact('product'));
}

/**
Expand Down

0 comments on commit 199e5a0

Please sign in to comment.