Commit 994e7f3
committed
Add product trash management functionality in ProductController
This commit introduces methods to manage product visibility in a trash state. The 'putInTrash' method allows products to be marked as trashed, while 'productListOfTrash' retrieves products that are in the trash. Additionally, the 'is_trashed' attribute is added to the Product model and migration, and the API routes are updated to include these new functionalities, enhancing product management capabilities.1 parent 89d0dc6 commit 994e7f3
File tree
4 files changed
+32
-4
lines changed- app
- Http/Controllers/Seller
- Models
- database/migrations
- routes
4 files changed
+32
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
29 | 40 | | |
30 | 41 | | |
31 | 42 | | |
| |||
120 | 131 | | |
121 | 132 | | |
122 | 133 | | |
| 134 | + | |
123 | 135 | | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
124 | 139 | | |
| 140 | + | |
125 | 141 | | |
126 | 142 | | |
127 | 143 | | |
128 | 144 | | |
| 145 | + | |
129 | 146 | | |
130 | 147 | | |
131 | 148 | | |
| |||
207 | 224 | | |
208 | 225 | | |
209 | 226 | | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
210 | 235 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
32 | 33 | | |
33 | 34 | | |
34 | 35 | | |
| |||
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
181 | 181 | | |
182 | 182 | | |
183 | 183 | | |
184 | | - | |
185 | | - | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
186 | 187 | | |
187 | 188 | | |
188 | 189 | | |
| |||
0 commit comments