vendredi 27 janvier 2017

Multiple kinds of posts in laravel 5

i want code own blog in laravel 5. I want use multiple kinds of posts, like quotes, links for interesting web pages, classics posts or music posts. For example for quotes i don't need title, or slug. But for classics posts i need slug and title. I can store all kind of posts in one table, but i think this is not pretty solution. Maybe i can use polymorphic relations, but i don't know how implement it to solve my issue.

Can someone help me with design db? Any idea for pretty solution?



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2kuDtLo
via IFTTT

Aucun commentaire:

Enregistrer un commentaire