/**
  * Show the form for editing the specified resource.
  *
  * @param  int $id
  * @return Response
  */
 public function edit($id)
 {
     $bank = Bank::findOrFail($id);
     $accounttypes = AccountType::lists('code', 'id');
     $houses = House::lists('house_code', 'id');
     return view('bank.edit', compact('bank', 'accounttypes', 'houses'));
 }
 /**
  * Run the database seeds.
  *
  * @return void
  */
 public function run()
 {
     DB::table('account_types')->delete();
     AccountType::create(['type_id' => '1', 'app_name' => 'RacquetballHub']);
     AccountType::create(['type_id' => '2', 'app_name' => 'Facebook']);
     AccountType::create(['type_id' => '3', 'app_name' => 'Google+']);
     AccountType::create(['type_id' => '4', 'app_name' => 'InstaGram']);
     AccountType::create(['type_id' => '5', 'app_name' => 'Twitter']);
 }
 /**
  * Remove the specified resource from storage.
  *
  * @param  int $id
  * @return Response
  */
 public function destroy($id)
 {
     AccountType::destroy($id);
     return response()->json(['message' => 'Account type successfully deleted!']);
 }