blog data resources
This commit is contained in:
@@ -35,9 +35,13 @@ class WrenchResources extends BaseController
|
||||
$res1['marketdata'] = $this->MarketData();
|
||||
$res1['productdata'] = $this->ProductData();
|
||||
$res1['collectiondata'] = $this->CollectionData();
|
||||
$res1['blogdata'] = $this->getBlogData();
|
||||
return $this->response->setJson($res1);
|
||||
}
|
||||
|
||||
private function getBlogData(){
|
||||
return ( new \App\Models\BlogDataModel() )->blogData(100);
|
||||
}
|
||||
public function index()
|
||||
{
|
||||
|
||||
@@ -48,6 +52,11 @@ class WrenchResources extends BaseController
|
||||
|
||||
$arrayVar = [
|
||||
"data" => [
|
||||
[
|
||||
"id" => "1",
|
||||
"name" => "blog",
|
||||
"content" => "Blog",
|
||||
],
|
||||
[
|
||||
"id" => "1",
|
||||
"name" => "onsale",
|
||||
|
||||
Reference in New Issue
Block a user