本文整理匯總了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]);
}
示例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]);
}