public function postDeleteCollection($userId, $collectionId, BlueprintCollection $blueprintCollection, Collection $collection) { $deletePivot = $blueprintCollection->where('collection_id', $collectionId); $deletePivot->delete(); $collection->destroy($collectionId); return redirect()->route('general::user::getProfile', ['user_id' => $userId])->with('collectionDeleteSuccess', true); }