app/Category.php
/**
     * Delete the selected category, passed from id, and his sub-categories
     *
     * @param $id - The Category to delete
     * @return bool
     */
Delete the selected category, passed from id, and his sub-categories
@param $id - The Category to delete
@return bool
Delete the selected category passed from id and his sub - categories @param $id - The Category to delete @return bool
public function moveSubcategory($category_id, $new_parent_category_id)
    {
        return $this->where('parent_id',$category_id)->update(['parent_id' => $new_parent_category_id]);
    }
public function moveSubcategory ( $ category_id , $ new_parent_category_id ) { return $ this -> where ( 'parent_id' , $ category_id ) -> update ( [ 'parent_id' => $ new_parent_category_id ] ) ; }
Delete the selected category, passed from id, and his sub-categories
 @param $id - The Category to delete
 @return bool
Delete the selected category passed from id and his sub - categories @param $id - The Category to delete @return bool