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

Commit

Permalink
Update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
pactode committed May 23, 2019
1 parent 7ac6c37 commit b20cc6f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,14 @@ class ProductController extends Controller
return $this->respond($paginator);
}

public function store(Request $request)
{
$product = Product::create($request->all());

return $this->respond($product->fresh())
->setStatusCode(201);
}

public function show(Product $product)
{
return $this->respond($product);
Expand Down

0 comments on commit b20cc6f

Please sign in to comment.