当前位置: 首页>>代码示例>>PHP>>正文


PHP Bank::where方法代码示例

本文整理汇总了PHP中Bank::where方法的典型用法代码示例。如果您正苦于以下问题:PHP Bank::where方法的具体用法?PHP Bank::where怎么用?PHP Bank::where使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Bank的用法示例。


在下文中一共展示了Bank::where方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: sendEmailOrder

 private function sendEmailOrder($order, $cart_part, $pembayaran_part)
 {
     $bank = \View::make('admin.pengaturan.bank')->with('banks', \BankDefault::all())->with('banktrans', \Bank::where('akunId', '=', $this->akunId)->where('status', '=', 1)->get());
     $akun = Akun::find($this->akunId);
     if ($akun->alamatWeb != '') {
         $url = 'http://' . $akun->alamatWeb . '/konfirmasiorder';
     } else {
         $url = 'http://' . $akun->alamatJarvis . '.jstore.co/konfirmasiorder';
     }
     $data = array('pelanggan' => $order->nama, 'pelangganalamat' => $order->alamat, 'pelangganphone' => $order->telp, 'toko' => $this->setting->nama, 'kodeorder' => $order->kodeOrder, 'tanggal' => date("d F Y", strtotime($order->tanggalOrder)) . ' ' . date("g:ha", strtotime($order->tanggalOrder)), 'cart' => $cart_part, 'ekspedisi' => $order->jenisPengiriman, 'totalbelanja' => $order->total, 'phone' => $this->setting->telepon, 'handphone' => $this->setting->hp, 'email' => $this->setting->email, 'pembayaran' => $pembayaran_part, 'rekeningbank' => $bank, 'url' => $url);
     $template_email = \Templateemail::where('akunId', '=', $this->akunId)->where('no', '=', 1)->first();
     $template = \View::make('checkout::email.main');
     $pengirim = $this->datapengirim;
     $pengaturan = $this->setting;
     $pengirim['emailtoko'] = $pengaturan->email;
     $datapengirim['fromemail'] = $this->setting->email;
     $datapengirim['fromtoko'] = $this->setting->nama;
     $email = bind_to_template($data, $template_email->isi);
     $subject = 'Pemberitahuan Order -- ' . bind_to_template($data, $template_email->judul);
     Mail::later(3, 'emails.email', array('data' => $email), function ($message) use($subject, $pengirim) {
         $message->from($pengirim['emailtoko']);
         $message->to($pengirim['email'], $pengirim['nama'])->subject($subject);
     });
     //kirik email konfirmasi ke email toko
     $subject2 = 'Pemberitahuan Order -- ' . bind_to_template($data, $template_email->judul);
     Mail::later(5, 'emails.email', array('data' => $email), function ($message) use($subject2, $pengaturan) {
         $message->to($pengaturan->emailAdmin, $pengaturan->nama)->subject($subject2);
     });
 }
开发者ID:yusidabcs,项目名称:checkout,代码行数:29,代码来源:CheckoutController.php

示例2: bank_delete

 /**
  * function name : bank_delete
  * edit data s_bank
  * get
  */
 public function bank_delete($id)
 {
     if (Session::get('level') != '') {
         $result = Bank::where('bank_id', $id)->delete();
         if ($result) {
             return Redirect::to('bank')->with('success_message', 'ลบข้อมูลเรียบร้อยแล้ว');
         } else {
             return Redirect::to('bank')->with('error_message', 'ไม่สามารถลบข้อมูลได้ กรุณาแจ้งผู้ดูแลระบบ');
         }
     } else {
         return View::make('login.index');
     }
 }
开发者ID:themesanasang,项目名称:salary,代码行数:18,代码来源:AdminController.php


注:本文中的Bank::where方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。