Ejemplo n.º 1
0
 public function update($id)
 {
     // save updated
     $record = $this->records->find($id);
     if (!$record) {
         Loanexception::create(Input::all());
         return $this->respond($record);
     }
     $record->fill(Input::all())->save();
     return $this->respond($record);
 }
 public function run()
 {
     DB::table('loanexceptions')->delete();
     Loanexception::create(['loan_id' => 1, 'exception_id' => 32, 'msg' => 'Equipment discount rate used is non-standard']);
     Loanexception::create(['loan_id' => 1, 'exception_id' => 40, 'msg' => "ARM Interest Rate and Distributor Interest Rate are not the same"]);
     Loanexception::create(['loan_id' => 1, 'exception_id' => 47, 'msg' => "This loan relies upon outstanding Crop Insurance Claims as collateral"]);
     Loanexception::create(['loan_id' => 1, 'exception_id' => 50, 'msg' => "The crop insurance forecast plus FSA payments do not exceed the value of ARM Commitment"]);
     Loanexception::create(['loan_id' => 1, 'exception_id' => 23, 'msg' => "Applicant has yield history that is less than break-even for soybeans"]);
     Loanexception::create(['loan_id' => 2, 'exception_id' => 32, 'msg' => 'Equipment discount rate used is non-standard']);
     Loanexception::create(['loan_id' => 2, 'exception_id' => 40, 'msg' => "ARM Interest Rate and Distributor Interest Rate are not the same"]);
     Loanexception::create(['loan_id' => 2, 'exception_id' => 23, 'msg' => "Applicant has yield history that is less than break-even for rice"]);
 }