本文整理汇总了PHP中app\Address::apiLast方法的典型用法代码示例。如果您正苦于以下问题:PHP Address::apiLast方法的具体用法?PHP Address::apiLast怎么用?PHP Address::apiLast使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类app\Address
的用法示例。
在下文中一共展示了Address::apiLast方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getOffer
public function getOffer(Request $request, $shop_id = 0, $offer_id = 0)
{
$business = Business::apiFind($shop_id);
$offer = Offer::apiFind($shop_id, $offer_id);
$address = Address::apiLast();
session(['uri' => URL::full()]);
return view('auth.business.offer', ['TITLE' => '商家项目', 'META_KEYWORDS' => META_KEYWORDS, 'META_DESC' => META_DESC, 'PAGE_CODE' => 'auth.business.offer', 'business' => $business, 'offer' => $offer, 'address' => $address]);
}
示例2: getGet
public function getGet(Request $request, $page = 1)
{
$res = ['response' => 'YES', 'status' => 0];
$addressLast = Address::apiLast();
$staffers = Staffer::apiGet($page, 10, $addressLast);
// dd($staffers);
if (is_array($staffers)) {
$res['status'] = 1;
if (count($staffers) > 0) {
$res['html'] = view('auth.staffer.templet.staffers', ['staffers' => $staffers, 'addressLast' => $addressLast])->render();
} else {
$res['html'] = '';
}
} else {
$res['msgError'] = '加载失败,请稍后再试';
}
return response()->json($res);
}
示例3: getFavorite
public function getFavorite(Request $request)
{
$user = $request->user();
$staffers = Staffer::apiFavoriteList(1, 10);
$addressLast = Address::apiLast();
return view('auth.account.favorite', ['TITLE' => '技师收藏', 'META_KEYWORDS' => META_KEYWORDS, 'META_DESC' => META_DESC, 'PAGE_CODE' => 'auth.account.favorite', 'user' => $user, 'staffers' => $staffers, 'addressLast' => $addressLast]);
}