コード例 #1
0
 public function storefromajax()
 {
     $fplp = new FPLPembelian();
     $fplp->details = Input::get('details');
     $fplp->save();
     return Response::json($fplp);
 }
コード例 #2
0
 public function destroy($id)
 {
     FPL::where('id', '=', $id)->delete();
     MengetahuiFPL::where('fpl_id', '=', $id)->delete();
     FPLSpec::where('fpl_id', '=', $id)->delete();
     FPLKebutuhan::where('fpl_id', '=', $id)->delete();
     FPLPembelian::where('fpl_id', '=', $id)->delete();
     FPLPerbaikan::where('fpl_id', '=', $id)->delete();
     Session::flash('success', 'Data telah dihapus.');
     return Redirect::to('/admin/fpl');
 }