src/Http/Controllers/ContentBlockController.php
/**
     * Remove the specified resource from storage.
     *
     * @param  int $contentId
     * @param  int $blockTypeId
     * @param  int $blockId
     *
     * @return \Symfony\Component\HttpFoundation\Response
     */
Remove the specified resource from storage.


Remove the specified resource from storage .
public function destroy($contentId, $blockTypeId, $blockId)
    {
        try {
            list($content, $blockType, $block) = array_values($this->contentBlocks->destroy($contentId, $blockTypeId, $blockId));
        } catch (Exception $e) {
            return $this->handleException($e, trans('soda::errors.delete', ['object' => trans('soda::terminology.block')]));
        }
        return redirect()->route('soda.content.edit', [$contentId, 'tab' => $this->getTab($blockType)])->with('warning', trans('soda::messages.deleted', ['object' => trans('soda::terminology.block')]));
    }
public function destroy ( $ contentId , $ blockTypeId , $ blockId ) { try { list ( $ content , $ blockType , $ block ) = array_values ( $ this -> contentBlocks -> destroy ( $ contentId , $ blockTypeId , $ blockId ) ) ; } catch ( Exception $ e ) { return $ this -> handleException ( $ e , trans ( 'soda::errors.delete' , [ 'object' => trans ( 'soda::terminology.block' ) ] ) ) ; } return redirect ( ) -> route ( 'soda.content.edit' , [ $ contentId , 'tab' => $ this -> getTab ( $ blockType ) ] ) -> with ( 'warning' , trans ( 'soda::messages.deleted' , [ 'object' => trans ( 'soda::terminology.block' ) ] ) ) ; }
Remove the specified resource from storage.
Remove the specified resource from storage .