當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Address::apiFind方法代碼示例

本文整理匯總了PHP中app\Address::apiFind方法的典型用法代碼示例。如果您正苦於以下問題:PHP Address::apiFind方法的具體用法?PHP Address::apiFind怎麽用?PHP Address::apiFind使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在app\Address的用法示例。


在下文中一共展示了Address::apiFind方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: getTakeorder

 public function getTakeorder(Request $request, $staffer_id, $tote_id, $product_amount)
 {
     $user = $request->user();
     $abd_id = $request->input('abd_id');
     $days = $request->input('days');
     $moment = $request->input('moment');
     $time = $request->input('time');
     $coupon_id = $request->input('coupon_id');
     $staffer = Staffer::apiFind($staffer_id);
     $address = Address::apiFind($abd_id);
     $item = Order::item($tote_id, $product_amount);
     $check = Tote::apiCheck($item, $staffer_id, $abd_id, $days, $moment, $coupon_id);
     $tote = Tote::apiFind($tote_id);
     $url = URL::full();
     session(['url' => $url]);
     return view('auth.staffer.takeorder', ['TITLE' => '下單', 'META_KEYWORDS' => META_KEYWORDS, 'META_DESC' => META_DESC, 'PAGE_CODE' => 'auth.staffer.takeorder', 'user' => $user, 'staffer' => $staffer, 'address' => $address, 'check' => $check, 'tote' => $tote, 'staffer_id' => $staffer_id, 'tote_id' => $tote_id, 'product_amount' => $product_amount, 'abd_id' => $abd_id, 'days' => $days, 'moment' => $moment, 'time' => $time, 'coupon_id' => $coupon_id, 'url' => $url]);
 }
開發者ID:verchielxy,項目名稱:ttx,代碼行數:17,代碼來源:StafferController.php

示例2: getAddresssave

 public function getAddresssave(Request $request, $id = 0)
 {
     $request->session()->reflash();
     $user = $request->user();
     $locations = $user->locationDetected();
     $citys = city::apiGet();
     $userCity = City::showCity($locations['city']);
     $TITLE = '添加地址';
     $address = '';
     if ($id) {
         $TITLE = '修改地址';
         $address = Address::apiFind($id);
     }
     return view('auth.account.addressave', ['TITLE' => $TITLE, 'META_KEYWORDS' => META_KEYWORDS, 'META_DESC' => META_DESC, 'PAGE_CODE' => 'auth.account.addressave', 'user' => $user, 'citys' => $citys, 'userCity' => $userCity, 'address' => $address, 'id' => $id]);
 }
開發者ID:verchielxy,項目名稱:ttx,代碼行數:15,代碼來源:AccountController.php


注:本文中的app\Address::apiFind方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。