I'm building a project in laravel 5 and want to create a model that basically converts a day ID (0-6) to a day name (mon-sun). It seems overkill to have a whole table set up for this, when the days are never going to change and an array would do just as well.
If I'm setting up this as a class/model, would I still be required by laravel to have an associated table?
Should I just create a model that doesn't extend the eloquent model?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire