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 movePostsToCategory($category_id, $new_category_id)
    {
       if( \DB::table('category_post')->where('category_id', '=', $category_id)->update(array('category_id' => $new_category_id)) ){
           return true;
       }
        return false;
    }
public function movePostsToCategory ( $ category_id , $ new_category_id ) { if ( \ DB :: table ( 'category_post' ) -> where ( 'category_id' , '=' , $ category_id ) -> update ( array ( 'category_id' => $ new_category_id ) ) ) { return true ; } return false ; }
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