What's new
Added
int|stringtenant ID support —scopeForTenant()now accepts both integer and string tenant IDs, enabling compatibility with packages liketenancyforlaravelthat use string-based UUIDs. The PHP payload serialization query has been updated fromi:123;format tos:3:"123";format. (@zerdotre — #106)- Clear all logs button — New "Clear all logs" header action in the queue monitor table, protected by a confirmation modal before truncating all records. (@zerdotre — #106)
- Tenant ID column — The
tenant_idcolumn is now visible in the table when multi-tenancy is enabled in the config.
Changed
- Migration stub:
tenant_idcolumn type changed fromunsignedBigIntegertostring(with index). This only affects new installations.
⚠️ Note for existing multi-tenant users
If you were using integer-based tenant IDs, the serialization format in scopeForTenant() has changed:
| Before | After |
|---|---|
i:123; (PHP int)
| s:3:"123"; (PHP string)
|
New jobs dispatched after upgrading will use the string format. Existing records in queue_monitors are not modified. If you need to query historical records, create a data migration or keep your $tenantId typed as int.
Contributors
A big thank you to @zerdotre for contributing both features in this release! 🙌
Full Changelog: https://github.com/ultraviolettes/filament-jobs-monitor/blob/main/CHANGELOG.md