v8.5.0 (released 2026-03-13):
- Added support for Laravel 13. #324
- Dropped support for PHP 8.1. #325
- Run CI workflows with PHP 8.5. #322
v8.4.1 (released 2025-10-17):
- Updated
.gitattributesfile to include correct files. #321
v8.4.0 (released 2025-10-17):
- Added
.gitattributesfile. #320
v8.3.1 (released 2025-05-27):
- Fixed bug that prevented the migrations from running when using MySQL. #315
- Added GitHub Actions workflows to run the tests with MySQL and PostgreSQL. #314
v8.3.0 (released 2025-02-24):
- Added support for Laravel 12. #308
- Added support for Larastan 3. #309
- Added support for Pest 3. #308
v8.2.1 (released 2024-12-03):
- Removed
laravel/frameworkdependency that was accidentally added. 7f3bc3b
v8.2.0 (released 2024-12-01):
- Added support for PHP 8.4. #301
v8.1.2 (released 2024-09-17):
- Fixed bug that threw an exception if the
short_url.idcolumn was returned as a string from the database. #297
v8.1.1 (released 2024-08-27):
- Fixed bug that threw an exception if the OS name could not be determined from the user agent. #295
v8.1.0 (released 2024-07-02):
- Added
allowable_url_schemesconfig value to allow for custom URL schemes to be used when creating short URLs. #287, #288
v8.0.1 (released 2024-06-14):
- Fixed bug that threw an exception when creating a new Short URL and Laravel is set to use
\Carbon\CarbonImmutabledates. #285
v8.0.0 (released 2024-04-26):
- Switch from
jenssegers/agenttowhichbrowser/parserfor user agent parsing. #261, #256 - Added property types and strict type-checking. #265
- Added support for PHPUnit 11. #268
- Added Pest architecture tests. #274
- Switch to
ashallendesign/laravel-config-validatorto validate the package's config. #278 - Dropped support for PHP 8.0. #257
- Dropped support for Laravel 8 and 9. #257
- Dropped support for PHPUnit 8 and 9. #268
- Switched from "nunomaduro/larastan" to "larastan/larastan". #267
- Removed the
dateproperty from theShortURLandShortURLVisitmodels. #266 - Abstract the key generator out to use an interface. #262
- Updated the facade to include all methods in the docblock. #252
Huge thank you to @stevebauman and @marzvrover for their contributions in this release. I really appreciate it! 🚀
v7.10.0 (released 2024-03-19):
- Added support for nesbot/carbon 3.0. #246
v7.9.0 (released 2024-03-12):
v7.8.2 (released 2024-02-12):
- Fixed a bug in the
ShortURLmodel that prevented a boolean field from being cast. #234 - Added missing methods to the
ShortURLfacade's docblock. #233
v7.8.1 (released 2023-12-28):
- Fixed bug in a database migration that was using the wrong database connection. #228
- Code style fixes. #230
v7.8.0 (released 2023-11-11):
- Added the ability to store custom database fields when creating short URLs. #225
v7.7.0 (released 2023-10-26):
- Added the ability to specify the database connection for the package's models. #214
- Improve the query key generation performance. #213
- Added PHP 8.3 CI tests. #217
v7.6.0 (released 2023-03-21):
- Added support for
hashids/hashidsv5.0. #183 - Added the ability to pass a seed that can be used when generating the short URL key. #185
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.