This package stores the full URL in the database (default_short_url) but I have a few thoughts.
My idea is to drop that column and utilize Accessor (Dynamic attribute).
Why?
Storing the full URL in the database will increase database size.
When the config value of short-url.prefix is changed, default_short_url for the existing links is not updated. (Same for the domain)
So, utilizing the accessor we can return default_short_url from the model and the mentioned cases will be solved as well.
This package stores the full URL in the database (
default_short_url
) but I have a few thoughts. My idea is to drop that column and utilizeAccessor
(Dynamic attribute).Why?
short-url.prefix
is changed,default_short_url
for the existing links is not updated. (Same for the domain)So, utilizing the accessor we can return
default_short_url
from the model and the mentioned cases will be solved as well.