I've tried to implement polymorphic relationships. They work perfectly... However, I'm trying to reduce my database size as much as possible so... I've this
Table action
| id | realatable_type | relatable_id
| 1 | LionPeople | 65
| 2 | LionCompany | 13
Obviously I've this
<?php namespace Lion;
class Company extends Eloquent { ... }
class People extends Eloquent { ... }
Is there any way to store only "People" or "Company" assuming that the namespace is always going to be "Lion"?
See Question&Answers more detail:os