DEV Community

Discussion on: Use Laravel charts in Laravel.

 
cameljohn profile image
CamelJohn • Edited

Hi ariel,

Sorry im new to this community and am trying to see how i can send code snippets like tou do.

Ive dye dumped the label and dataset collections (the come from querries) and i recieve a collection of php arrays. The problem is that they are key value paired so im guessing the blade does get an object and not an array of data.

Ive looked around for different methids and it seems there might be a get_data() function that takes the params and returns an array.

If it works ill let you know.

If you have some insights for me i'll be more than happy.

Other than that thank you so much !

Thread Thread
 
arielmejiadev profile image
Ariel Mejia

Thanks I try to explain it as much as I can, you write markdown in dev.to, so to write code snippets you only need to add alt+96 it writes " ` " you need to write this aphostrophe three times to open a block and three times to close the block, inside the block just paste your code, I think that you can use other ways to get data as you want but is a eloquent stuff, if you wish you can paste the dd() output and maybe I could help.

Happy code!