Release Notes
4.0.0
- Added Laravel 13 support and retained Laravel 12 compatibility. Dropped Laravel 11 after the end of its upstream security support.
- Fixed calls through the
DateandFilewrappers, Laravel macros, andArrmethods that mutate their first argument by reference. - Loaded
Helpers/Functions.phpduring Laravel's boot process using the actual application path instead of a fixed path fromvendor. - Generated helpers now use the application's namespace.
helper:initskips existing files; invalid names, duplicate individual requests, and write failures return a nonzero exit code. - Kept the eleven
Strcharacter checks in the package trait for newly generated classes, and removed placeholder methods and stale declarations from the templates. - Added Laravel integration tests, a PHP/Laravel CI matrix, and a GitHub Pages workflow that builds documentation before deploying it.
Upgrade from 3.x
If your app is still on Laravel 11, upgrade Laravel to at least 12.x first.
shell
composer require "rmunate/laravel_helpers:^4.0" --with-all-dependencies- Keep your existing helper classes and
Functions.php. You do not need to regenerate them to get the fixes for the native Laravel traits.helper:initonly adds missing files. - Global functions are now available after Laravel boots. If a standalone script needs them before bootstrapping Laravel, explicitly load the file in that script instead.
- Scripts that call
helper:createorhelper:functionsshould handle a nonzero exit code when the target already exists. Usehelper:initwhen you need a repeatable default setup. - If an
Arrsubclass overridesset,forget,pull, orpush, match the wrapper's by-reference parameter and method signature.
3.1.0
- Added Laravel 12 support.
3.0.0
- Added the
Numberwrapper for Laravel's native numeric helpers. - Removed the old dynamic
Helperclass.
