public function deletePertanyaan($id) { Pertanyaan::deletePertanyaan($id); return Redirect::back(); }
public static function deletePertanyaan($id) { $pertanyaan = Pertanyaan::where('id_pertanyaan', $id)->first(); $pertanyaan->delete(); }