Upgrade
First stable release.
Added
CodeGenerator,VisitRecorder, andRedirectsShortUrlscontracts with container bindings- URL ownership via nullable
user_id,owner()relation, andownedByscope - Soft deletes on
ShortifyUrl - Configurable route middleware and redirect status
php artisan shortify:prune(with--hoursand--dry-run)- Documentation under
docs/for bradietilley.dev LICENSE.mdand this changelog
Changed
- Require PHP
^8.3|^8.4|^8.5and Laravel^13.0 - Visit recording and
visit_countupdates run in a transaction - Code generation stops on the first free code and retries on unique-constraint races
- CI matrix covers PHP 8.3–8.5 on Laravel 13; Pest 4, Testbench 11, PHPStan 2
Fixed
- Code generation loop never broke after finding a free code (could leave
codenull) - README / docs typos and the
features.track_visitsconfig key documentation
Upgrade notes
-
Upgrade the host app to PHP 8.3+ and Laravel 13.
-
Update the package constraint to
^1.0. -
Publish and run migrations (includes ownership + soft deletes):
php artisan vendor:publish --tag="shortify-migrations" php artisan migrate -
Optionally re-publish config for new
routing.middlewareandrouting.redirect_statuskeys. -
If you subclassed
Shortifyonly to customise codes or redirects, prefer binding the new contracts instead.
[0.2.0] - 2024-10-27
Pre-stable release on Laravel 11.