本文整理汇总了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);
});
}
示例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');
}
}