public function run()
 {
     DB::table('consortium_globals')->delete();
     $collection = [['address' => '5350 Poplar Avenue, Suite 150', 'address2' => 'Memphis, TN 38119', 'phone' => '9016824064', 'fax' => '9012021042', 'corporation_type' => 'Tennessee']];
     foreach ($collection as $record) {
         ConsortiumGlobal::create($record);
     }
 }
 public function run()
 {
     DB::table('consortium_globals')->delete();
     $collection = [['name' => 'Aerospace Disassembly Consortium', 'abr' => 'ADC', 'address' => '5350 Poplar Avenue, Suite 150', 'address2' => 'Memphis, TN 38119', 'phone' => '9016824064', 'fax' => '9012021042', 'corporation_type' => 'Tennessee', 'url' => 'www.eco.local']];
     foreach ($collection as $record) {
         ConsortiumGlobal::create($record);
     }
 }
 public function update($id)
 {
     // save updated
     $record = $this->records->find($id);
     if (!$record) {
         ConsortiumGlobal::create(Input::all());
         return $this->respond($record);
     }
     $record->fill(Input::all())->save();
     return $this->respond($record);
 }