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

Hi trahma,

interesting problem. From your question is not clear to me where the content of a specific article version is stored. I think two tables are enough. Let's keep the table names article and article_version. I would define them as article - id, title, ... article_version - article_id, version, creation_time, content article hasMany article_versions. It makes sense to me also to have a 'relationship' where you only take the version names without the content.

Hope this helps

0

Sign in to participate in this thread!

Eventy

Your banner here too?

trahma trahma Joined 8 Jun 2014

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.