Commit 785a9e2
committed
Add restore functionality for trashed products in ProductController
This commit introduces a new method, 'restoreProduct', to the ProductController, allowing products to be restored from the trash state. Additionally, the API routes are updated to include this new functionality, enhancing the product management capabilities by providing a way to recover previously trashed products.1 parent 994e7f3 commit 785a9e2
File tree
2 files changed
+10
-3
lines changed- app/Http/Controllers/Seller
- routes
2 files changed
+10
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
235 | 242 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
| 187 | + | |
188 | 188 | | |
189 | 189 | | |
190 | 190 | | |
| |||
0 commit comments