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

From what I understand String is a varchar and the text(s) reflect their counterparts (in MySQL at least) MySQL Docs

Last updated 2 years ago.
0

That's correct. String is varchar 255 and the rest of what elite123 said.

Last updated 2 years ago.
0

@elite123, @ShawnMcCool : thanks!

In case of storing product description, along with their specification such as Size, weight, colour, I'm saving it as Text. Shouldn't be a problem , right?

Last updated 2 years ago.
0

If you're not going to have a massive amount of products, then it doesn't really matter. I'd generally consider the size requirements of each individual field while designing the schema.

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

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.