Forum Laravel productRepository
Hello,
I came across this code:
$product = $this->productRepository->findWithoutFail($id); if (empty($product)) { return $this->sendError('Product not found'); } $product = $this->productRepository->update($input, $id); return $this->sendResponse($product->toArray(), 'Product updated successfully');
I wonder where does productRepository comes from?
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop for days upon days, and still not see everything!
Get Started
productRepository
Hello,
I came across this code:
I wonder where does productRepository comes from?