public function run()
 {
     DB::table('defaultcountycrops')->delete();
     for ($c = 1; $c < 3240; $c++) {
         Defaultcountycrop::create(['county_id' => $c]);
     }
     // end for
 }
 public function update($id)
 {
     // save updated
     $record = $this->records->find($id);
     if (!$record) {
         Defaultcountycrop::create(Input::all());
         return $this->respond($record);
     }
     $record->fill(Input::all())->save();
     return $this->respond($record);
 }