change
This commit is contained in:
@@ -39,19 +39,11 @@ class CMSApiServices
|
||||
$data['customer'] = Aboutus::select('id', 'thumbnail_image', 'description')
|
||||
->where('category_xid', '1')
|
||||
->get()
|
||||
->map(function ($item) {
|
||||
$item['description'] = strip_tags($item['description']);
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
|
||||
$data['restaurant'] = Aboutus::select('id', 'thumbnail_image', 'description')
|
||||
->where('category_xid', '2')
|
||||
->get()
|
||||
->map(function ($item) {
|
||||
$item['description'] = strip_tags($item['description']);
|
||||
return $item;
|
||||
})
|
||||
->toArray();
|
||||
foreach ($data['customer'] as $k => $val) {
|
||||
$data['customer'][$k]['thumbnail_image'] = ListingImageUrl('about_images', $val['thumbnail_image']);
|
||||
|
||||
Reference in New Issue
Block a user