If transport name takes two rows then one blank should not be shown how to do something like that more responsive?

|
Acird Burn 2021-07-29 14:14:27
Pradeep Kumar 2021-07-29 14:14:06
Links are being deleted in this group

inbox lets get connected

Ganesh M 2021-07-29 14:14:33
Here is the list of open source CMS in PHP.. Checkout LavaLite which is based on Laravel. https://www.findbestopensource.com/tagged/content-management-system?fq=PHP

48 best open source content management system projects.Findbestopensource
48 best open source content management system projects. #opensource
meetlunkad 2021-07-29 14:18:26
laravel_discuss-89731.jpg
If transport name takes two rows then one blank should not be shown how to do something like that more responsive ?
Pradeep Kumar 2021-07-29 14:20:07
Ganesh M 2021-07-29 14:14:33
Here is the list of open source CMS in PHP.. Checkout LavaLite which is based on Laravel. https://www.findbestopensource.com/tagged/content-management-system?fq=PHP

I had reviewed Lavalite too, again no HMVC nor vuejs

2021-07-29 15:01:32
Hello team, what are the restrictions on using groupBy?
being_danin 2021-07-29 15:11:54
{
“data”: [
{
“id”: 1,
“product_ids”: “1,2”,
“title_for_section”: “Hottest Deals”,
“short_description”: “Special”,
“style”: “1”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
},{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
}
]
},
{
“id”: 2,
“product_ids”: “1”,
“title_for_section”: “Most Selling Products”,
“short_description”: “Trending”,
“style”: “2”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
}
]
},
{
“id”: 3,
“product_ids”: “2,3”,
“title_for_section”: “Latest Products”,
“short_description”: “Latest Products”,
“style”: “3”,
“item_category”: [
{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
},{
“id”: 3,
“item_name”: “abc”,
“product_id”: 1
}
]
}
]
}
being_danin 2021-07-29 15:12:05
Ui want this type of json array
being_danin 2021-07-29 15:12:17
By comma separated value
being_danin 2021-07-29 15:12:34
Do anyone help me
being_danin 2021-07-29 15:13:40
I want to find it by product_ids from theme_settings table and the main table is item_categories table
being_danin 2021-07-29 15:14:18
laravel_discuss-89739.jpg

being_danin 2021-07-29 15:14:33
laravel_discuss-89740.jpg

bryan_king 2021-07-29 15:32:33
being_danin 2021-07-29 15:14:33

Think you should use a resource

being_danin 2021-07-29 15:38:34
laravel_discuss-89742.jpg
I have other query like this and i am having json response like
being_danin 2021-07-29 15:38:35
laravel_discuss-89743.jpg
It comes with string but i wamt it by multiple arrays
being_danin 2021-07-29 15:39:11
being_danin 2021-07-29 15:38:34
I have other query like this and i am having json response like

I have other query like this but i am getting results as string instead of multiple arrays

being_danin 2021-07-29 15:39:22
being_danin 2021-07-29 15:38:35
It comes with string but i wamt it by multiple arrays

Its my response

being_danin 2021-07-29 15:40:10
Need help
being_danin 2021-07-29 15:40:30
{
“data”: [
{
“id”: 1,
“product_ids”: “1,2”,
“title_for_section”: “Hottest Deals”,
“short_description”: “Special”,
“style”: “1”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
},{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
}
]
},
{
“id”: 2,
“product_ids”: “1”,
“title_for_section”: “Most Selling Products”,
“short_description”: “Trending”,
“style”: “2”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
}
]
},
{
“id”: 3,
“product_ids”: “2,3”,
“title_for_section”: “Latest Products”,
“short_description”: “Latest Products”,
“style”: “3”,
“item_category”: [
{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
},{
“id”: 3,
“item_name”: “abc”,
“product_id”: 1
}
]
}
]
}

I want it to be like this

eingurat504 2021-07-29 16:01:32
being_danin 2021-07-29 15:40:30
{
“data”: [
{
“id”: 1,
“product_ids”: “1,2”,
“title_for_section”: “Hottest Deals”,
“short_description”: “Special”,
“style”: “1”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
},{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
}
]
},
{
“id”: 2,
“product_ids”: “1”,
“title_for_section”: “Most Selling Products”,
“short_description”: “Trending”,
“style”: “2”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
}
]
},
{
“id”: 3,
“product_ids”: “2,3”,
“title_for_section”: “Latest Products”,
“short_description”: “Latest Products”,
“style”: “3”,
“item_category”: [
{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
},{
“id”: 3,
“item_name”: “abc”,
“product_id”: 1
}
]
}
]
}

I want it to be like this

Have u defined relations in ure models between product and category

dairschiavo 2021-07-29 16:08:20
being_danin 2021-07-29 15:40:30
{
“data”: [
{
“id”: 1,
“product_ids”: “1,2”,
“title_for_section”: “Hottest Deals”,
“short_description”: “Special”,
“style”: “1”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
},{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
}
]
},
{
“id”: 2,
“product_ids”: “1”,
“title_for_section”: “Most Selling Products”,
“short_description”: “Trending”,
“style”: “2”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
}
]
},
{
“id”: 3,
“product_ids”: “2,3”,
“title_for_section”: “Latest Products”,
“short_description”: “Latest Products”,
“style”: “3”,
“item_category”: [
{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
},{
“id”: 3,
“item_name”: “abc”,
“product_id”: 1
}
]
}
]
}

I want it to be like this

You are using MYSQL so your database is relational.
It’s not necessary do by this way. You should be able to access your products from theme_settings because you have access to your item_categories and item_categories have access to your products.
If you had done your Models correct, you would be able to access like this ‘$themeSettings->item_categories->products’.

being_danin 2021-07-29 16:09:42
Ohhk thanks
being_danin 2021-07-29 16:09:53
I’ll try
dairschiavo 2021-07-29 16:10:48
If you have doubt about how those relations needs to be done, take a look at docs:

https://laravel.com/docs/8.x/eloquent-relationships#introduction

being_danin 2021-07-29 16:11:00
being_danin 2021-07-29 15:40:30
{
“data”: [
{
“id”: 1,
“product_ids”: “1,2”,
“title_for_section”: “Hottest Deals”,
“short_description”: “Special”,
“style”: “1”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
},{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
}
]
},
{
“id”: 2,
“product_ids”: “1”,
“title_for_section”: “Most Selling Products”,
“short_description”: “Trending”,
“style”: “2”,
“item_category”: [
{
“id”: 1,
“item_name”: “pizzaaa margrita”,
“product_id”: 1
}
]
},
{
“id”: 3,
“product_ids”: “2,3”,
“title_for_section”: “Latest Products”,
“short_description”: “Latest Products”,
“style”: “3”,
“item_category”: [
{
“id”: 2,
“item_name”: “aaaa”,
“product_id”: 1
},{
“id”: 3,
“item_name”: “abc”,
“product_id”: 1
}
]
}
]
}

I want it to be like this

By doing this can i havethis type of response? With comma separated array value

dairschiavo 2021-07-29 16:12:17
being_danin 2021-07-29 16:11:00
By doing this can i havethis type of response? With comma separated array value

Automatically. Everything must be done by Laravel when you return $themeSettings->toJson();

dairschiavo 2021-07-29 16:12:46
or return json_encode($themeSettings);
being_danin 2021-07-29 16:13:15
Ohhk
zcoll 2021-07-29 18:38:37
Hey ! I have website I want to create android app for it ;which is better do it with api or with webview ??
daemon_coder 2021-07-29 18:56:58
zcoll 2021-07-29 18:38:37
Hey ! I have website I want to create android app for it ;which is better do it with api or with webview ??

Depends on what you want to achieve

daemon_coder 2021-07-29 18:58:18
If you want a native app, you’ll have to do APIs but of you want just WebView, then you should go with that
natghi2010 2021-07-29 20:10:57
zcoll 2021-07-29 18:38:37
Hey ! I have website I want to create android app for it ;which is better do it with api or with webview ??

Api

Perfectionist_me 2021-07-29 22:13:48
Anyone can tell where can find my mathematical functions. Is this in controller?
Perfectionist_me 2021-07-29 22:14:12
Perfectionist_me 2021-07-29 22:13:48
Anyone can tell where can find my mathematical functions. Is this in controller?

Like the total of my products etc

daemon_coder 2021-07-29 22:48:44
Perfectionist_me 2021-07-29 22:13:48
Anyone can tell where can find my mathematical functions. Is this in controller?

Can you expanciate more ?

|