djl997/blade-shortcuts
djl997/blade-shortcuts adds convenient shortcuts for common Laravel Blade tasks, helping you write cleaner, more concise templates with less repetitive markup. It integrates with Blade so everyday view patterns become simpler while staying within familiar Laravel conventions.
@date($date, 'dateOrDiff')) means activity feeds, audit logs, notification timestamps, comment threads, and dashboards all render dates the same way. That removes a recurring class of design-review nitpicks and ad-hoc helper duplication.Adopt (or keep) it when:
->diffForHumans() calls through Blade files.Look elsewhere or defer when:
To executives: This is a small, low-risk presentation dependency that keeps dates consistent across the product and is now verified against the current and next Laravel releases. The 1.11.0 release fixes a real user-facing bug — future-dated items (scheduled events, deadlines, renewals) could display misleading text like "tomorrow" when they were further out. Adopting or upgrading improves copy accuracy at essentially no engineering cost, provided we are on a supported PHP/Laravel baseline. The trade-off is a formal end of support for Laravel 6–9 and PHP 8.0, which is already consistent with Laravel's own support policy and reduces our exposure to unpatched framework versions.
To engineering: Patch-level upgrade with a clearly bounded breaking change. Requirements are PHP 8.1+ and Laravel 10+; anything older must pin to 1.10.x. The future-date fix corrects dateOrDiff behavior beyond a 23-hour horizon under Carbon 3 / Laravel 11+, and the expanded CI matrix (Laravel 10–13, multiple PHP versions) gives us upgrade confidence. Action items: confirm our PHP/Laravel floor, identify any Blade surfaces rendering future timestamps and add regression coverage there, then ship. Because this is a view-layer helper, rollback is trivial — take the upgrade.
How can I help you explore Laravel packages today?