Laravel comment table

posts
    id - integer
    title - string
    body - text

videos
    id - integer
    title - string
    url - string

comments
    id - integer
    body - text
    commentable_id - integer
    commentable_type - string
Here commentable_id can be can be, for example, the id of posts or videos table and the commentable_type canbe, for example, video or post.

Labels: ,

© copyright-2020 Rejaul