|
|
|
@ -10,7 +10,8 @@ class SlideController extends Controller |
|
|
|
//轮播图列表
|
|
|
|
public function index() |
|
|
|
{ |
|
|
|
$list = Slide::where('status', 1)->orderBy('sort')->orderBy('id', 'DESC')->limit(2)->get(['title','url']); |
|
|
|
$list = Slide::where('agent_id', $this->agent_id)->where('status', 1) |
|
|
|
->orderBy('sort')->orderBy('id', 'DESC')->limit(10)->get(['title','url']); |
|
|
|
return $this->success($list); |
|
|
|
} |
|
|
|
} |