/** * Remove a section * * @param $sectionId * @return \Illuminate\Http\RedirectResponse */ public function removeSection($sectionId) { if ($sectionId != null) { Section::destroy($sectionId); } return redirect()->back(); }
public function destroy($id) { Section::destroy($id); return Redirect::to('/admin/section'); }
public function delete($id) { Section::destroy($id); return \Redirect('/admin/sections')->with(['flash_message' => 'Section has been Successfully removed', 'flash-warning' => true]); }