Folders
This commit is contained in:
parent
b0bf11407e
commit
54bbf50e97
|
|
@ -121,14 +121,8 @@ class Wishlists extends WishlistController
|
|||
public function moveToFolder(Request $request, $folder_id){
|
||||
$customer = $request->user();
|
||||
|
||||
Log::info($request->wishlist);
|
||||
|
||||
$wishlist = is_array($request->wishlist)?: array($request->wishlist);
|
||||
|
||||
Log::info($wishlist);
|
||||
|
||||
if($this->wishlistRepository->where('customer_id',$customer->id)
|
||||
->whereIn('id',$wishlist)
|
||||
->whereIn('id',$request->wishlist)
|
||||
->update(['folder_id' => $folder_id])){
|
||||
|
||||
// $folder = app(FolderRepository::class)->with('wishlist')->find($folder_id);
|
||||
|
|
|
|||
Loading…
Reference in New Issue