Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

How do you want to use the data?

It is usually better practice to use a column for each value, unless you don't know what structure the data might be and you will never want to search on it

0

maybe you should save it in json encoded data, and give column 'type' to define how to process it in your code later.

because maybe in the future you need another position, not just 'x' and 'y', but 'z' too.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Marwzoor marwzoor Joined 8 Feb 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.