laraplans icon indicating copy to clipboard operation
laraplans copied to clipboard

Use Abstract models and interfaces instead of optional configurable models

Open gerardojbaez opened this issue 6 years ago • 0 comments

Will be a better approach to use abstract model classes and model interfaces instead of using real models in the package. This will force the developer to implement their own models that extends and implements the base abstract class.

This is helpful in cases where the developer wants to apply different logics to each model. A good example is the Plan model, for multilingual applications, this model needs to be translated.

The current approach works, but IMHO this new alternative is a better fit.

Any suggestions are welcome!

gerardojbaez avatar Nov 18 '17 19:11 gerardojbaez