v7.5.1 (released 2023-02-01):
- Added missing date fields to the
castsarray on the models to support Laravel 10. #181
v7.5.0 (released 2023-01-28):
- Added the ability to override the domain of the default URL. #173
v7.4.0 (released 2023-01-11):
v7.3.0 (released 2022-10-17):
- Added model factories for the
ShortURLandShortURLVisitsmodels. #162
v7.2.0 (released 2022-09-12):
- Added support for PHP 8.2. #139
- Added support for using
whenwhen building short URLs. #140 - Removed unused
URLfacade import. #147 - Fixed bug that always resulted in a 404 if the
prefixwas set tonull. #149, #158
v7.1.0 (released 2022-08-03):
- Added
toArraymethod to theBuilderclass. #133 - Fixed
shortURLrelationship on theShortURLVisitmodel. #132
v7.0.0 (released 2022-04-04):
- Added ability to remove the prefix from default short URLs. #123
- Added ability to define middleware for the default short URL route. #121
- Added ability to set the key generator on-the-fly. #122
v6.3.0 (released 2022-01-24):
- Added support for Laravel 9. #116
v6.2.0 (released 2021-11-26):
- Updated incorrectly set file permissions. #104
- Updated GitHub Actions to run workflow with PHP 8.1. #106
- Added support for PHPUnit ^9.0. #101
- Added support for Larastan ^1.0. #107
v6.1.0 (released 2021-10-21):
- Added the ability to customise the default short URL prefix. #100
v6.0.0 (released 2021-10-21):
- Added the ability to forward query parameters to the destination URL. #94
- Dropped support for Laravel 6, 7. #96, #98
- Dropped support for PHP 7.3, 7.4. #85
v5.2.0 (released 2021-09-21):
- Updated the migration for the
short_urlstable so thaturl_keyis now unique anddestination_urlis now a TEXT field rather than varchar. #80 - Added the ability to configure the alphabet used for generating keys with
hashids. #77
v5.1.0 (released 2021-06-11):
- Migrated the CI tests to be run using GitHub Actions instead of Travis CI. #67
v5.0.0 (released 2021-04-18):
- Removed the automatic loading of the migrations and made it mandatory for them to be published. #61
v4.3.0 (released 2021-04-12):
- Updated the private fields in the
Builderclass to be protected. #62
v4.2.0 (released 2021-01-26):
- Added support for PHP 8. #58
v4.1.1 (released 2020-09-16):
- Updated the Travis CI config to run the tests on the correct Laravel versions. #55
4.1.0 (released 2020-09-08):
- Added support for Laravel 8. #54
4.0.0 (released 2020-07-07):
- Added a new config value that can be used to toggle the config validation. #50
- Removed support for Laravel 5.8. #51
- Removed the
ShortURLBuilderfacade that was deprecated in v3.0.0. #52 - Documentation updates. #48
3.0.0 (released 2020-04-11):
- Added the functionality to set activation and deactivation times for the short URLs. #46
- Deprecated the
ShortURLBuilderfacade in favour of a newerShortURLfacade. #45
2.3.1 (released 2020-03-11):
- Updated the documentation to mention that the BC Math or GMP PHP extensions are required. #43
2.3.0 (released 2020-03-05):
- Added support for Laravel 7. #38
- Updated the asset publishing tags from
configandmigrationstoshort-url-configandshort-url-migrations. #39
2.2.0 (released 2020-02-27):
- Added a default option to enforce HTTPS on destination URLs as a config option. #36
2.1.0 (released 2020-02-19):
- Added the key salt (used for generating random URL keys) as a config option. #32
2.0.0 (released 2020-02-14):
- Added the functionality to track a visitor's referer URL.
- Added the functionality to track a user's device type.
- Added the functionality to explicitly set the tracking options on for each specific short URL. Previously, the options were set in the config and affected all new and existing short URLs.
- Added the functionality to explicitly set the HTTP status code for the redirect.
- Added a
ShortURLVisitedevent that is dispatched when the short URL is used. - Added the
trackingEnabled()andtrackingFields()helper methods to theShortURLmodel.
1.2.1 (released 2020-01-13):
- Fixed a bug that allowed multiple visits to a single-use URL if the URL's visit tracking was disabled. Pull Request #23
1.2.0 (released 2020-01-03):
-
Renamed the underlying facade class from
BuilderFacadetoShortURLBuilderfor consistency.Note: This isn't changing the name of the facade. It's just changing the underlying class name for if you want to use
use AshAllenDesign\ShortURL\Facades\ShortURLBuilder;rather thanuse ShortURLBuilder;. -
Added methods to the facade docblock. This will display the methods in the IDE's autocomplete.
1.1.0 (released 2020-01-03):
- Enforced a minimum length of 3 for the URL
key_lengththat is specified in the config. - Included hashids/hasids as a dependency. This is now used for generating the random, unique URL keys.
- Updated documentation.
1.0.0 (released 2020-01-02):
- Release for production.
- Added a
ShortURLBuilderfacade. - Refactored folder structure to meet standards.
- Updated documentation (thanks @NathanGiesbrecht)
- Updated tests and Travis CI configuration for PHP 7.4 testing.
0.0.1 (pre-release):
- Initial work and pre-release testing.