ash-jc-allen / short-url

A Laravel package for creating shortened URLs for your web apps.
MIT License
1.25k stars 158 forks source link

[Discuss] Dropping `default_short_url` column in favor of `Accessor` #247

Closed iRaziul closed 5 months ago

iRaziul commented 5 months ago

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?

So, utilizing the accessor we can return default_short_url from the model and the mentioned cases will be solved as well.

database screenshot