public function run()
 {
     DB::table('rescats')->delete();
     $collection = [['category' => 'Loan Processing'], ['category' => 'Loan Operations'], ['category' => 'Crop Insurance Operations'], ['category' => 'Crop Insurance Management'], ['category' => 'Month End Processing'], ['category' => 'Business Management'], ['category' => 'Loan Audit and Controls'], ['category' => 'Employee Training'], ['category' => 'Human Resources'], ['category' => 'Misc. Business Processes']];
     foreach ($collection as $record) {
         Rescat::create($record);
     }
 }
 public function update($id)
 {
     // save updated
     $record = $this->records->find($id);
     if (!$record) {
         Rescat::create(Input::all());
         return $this->respond($record);
     }
     $record->fill(Input::all())->save();
     return $this->respond($record);
 }