public function storefromajax()
 {
     $fplk = new FPLKebutuhan();
     $fplk->details = Input::get('details');
     $fplk->save();
     return Response::json($fplk);
 }
 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');
 }