/**
  *
  */
 private function emptyBlockTables()
 {
     foreach ($this->block->all() as $block) {
         $this->block->destroy($block);
     }
 }
Esempio n. 2
0
 /**
  * Remove the specified resource from storage.
  *
  * @param  Block $block
  * @return Response
  */
 public function destroy(Block $block)
 {
     $this->block->destroy($block);
     flash(trans('block::blocks.messages.block deleted'));
     return redirect()->route('admin.block.block.index');
 }