Ejemplo n.º 1
0
 public function update($id)
 {
     // save updated
     $record = $this->records->find($id);
     if (!$record) {
         Jointventure::create(Input::all());
         return $this->respond($record);
     }
     $record->fill(Input::all())->save();
     return $this->respond($record);
 }
Ejemplo n.º 2
0
 public function run()
 {
     DB::table('jointventures')->delete();
     Jointventure::create(['loan_id' => 2, 'partner' => 'Elektra Natchios', 'ssn' => '432003930', 'address' => '2107A Deviled Suites', 'city' => 'Hells Kitchen', 'state_id' => 4, 'zip' => '77631', 'email' => '*****@*****.**', 'phone' => '5129119999']);
     Jointventure::create(['loan_id' => 3, 'partner' => 'Dick Grayson', 'ssn' => '432123456', 'address' => '1 Wayne Manor', 'city' => 'Jonesboro', 'state_id' => 4, 'zip' => '77631', 'email' => '*****@*****.**', 'phone' => '5125551212']);
 }
Ejemplo n.º 3
0
 public function run()
 {
     DB::table('jointventures')->delete();
     Jointventure::create(['applicant_id' => 2, 'partner' => 'Elektra Natchios', 'location' => 'Hells Kitchen, NJ', 'email' => '*****@*****.**', 'phone' => '5129119999']);
     Jointventure::create(['applicant_id' => 3, 'partner' => 'Dick Grayson', 'title' => 'Sidekick', 'location' => 'Jonesboro, AR', 'email' => '*****@*****.**', 'phone' => '5125551212']);
 }