This PR improves the code by using the morphs method for polymorphic relationships, replacing the need for billable_id and billable_type columns and the index method. This leads to cleaner, more efficient code with improved maintainability and readability.
This PR improves the code by using the
morphs
method for polymorphic relationships, replacing the need forbillable_id
andbillable_type
columns and theindex
method. This leads to cleaner, more efficient code with improved maintainability and readability.