/** * Remove the specified resource from storage. * * @param Page $page * @return Response */ public function destroy(Page $page) { $this->page->destroy($page); flash(trans('page::messages.page deleted')); return redirect()->route('admin.page.page.index'); }
/** * */ private function emptyPagesTable() { foreach ($this->page->all() as $page) { $this->page->destroy($page); } }