mardi 21 février 2017

Laravel 5 different ads types

I'm working on classifieds site and I will have different types of ads. There will be cars, real estate and so on. All types will have type specific attributes. For example, realestate ads will have square meter attribute which cars doesnt need.

I created database model for that situation but have no idea how to tell that relations to eloquent. Also are there any better approach to this problem?

Ad table -id -date -ad_type_id

Cars table -id -title -horse_power

Realestate table -id -title -squares



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

Aucun commentaire:

Enregistrer un commentaire