public function update(BlockRequest $request, Block $block)
    {
        try {
            $attributes = $request->all();

            $block->update($attributes);
            return $this->response->message(trans('messages.success.updated', ['Module' => trans('block::block.name')]))
                ->code(204)
                ->status('success')
                ->url(guard_url('block/block/' . $block->getRouteKey()))
                ->redirect();
        } catch (Exception $e) {
            return $this->response->message($e->getMessage())
                ->code(400)
                ->status('error')
                ->url(guard_url('block/block/' . $block->getRouteKey()))
                ->redirect();
        }

    }