You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The bug
Due to the inclusion of the lodash-php module when using the composer autoloader, your module has the potential to be loaded before Laravel helper dependencies, which prevents the creation of Laravel's __() (trans) helper function. This results in all calls to __() breaking.
Essentially with this module as a dependency the Laravel project more than likely will need be manually installed in all other environments (dev, stage, prod, etc). Eliminating the ability to utilize composer install.
composer install (probably not necessary, just need "dynamic-forms" in the composer.json)
Push (or copy w/o vendor/) the project to a clean environment (staging, etc)
run composer install
call the __('some text') function (in a view for example)
load the page that calls the '__' helper function.
Expected behavior
The __() helper should not throw an exception and load as normal.
**Have you customized the resources/js/formio/defaults.js` file?
No
Yes (describe changes)
Additional context
In the Lodash module the '__' check if (!function_exists('__')) {on line 92 of Lodash.php is insufficient for preventing a conflict.
The text was updated successfully, but these errors were encountered:
The bug
Due to the inclusion of the lodash-php module when using the composer autoloader, your module has the potential to be loaded before Laravel helper dependencies, which prevents the creation of Laravel's __() (trans) helper function. This results in all calls to __() breaking.
Essentially with this module as a dependency the Laravel project more than likely will need be manually installed in all other environments (dev, stage, prod, etc). Eliminating the ability to utilize
composer install
.To Reproduce
Steps to reproduce the behavior:
Expected behavior
The __() helper should not throw an exception and load as normal.
**Have you customized the resources/js/formio/defaults.js` file?
Additional context
In the Lodash module the '__' check
if (!function_exists('__')) {
on line 92 of Lodash.php is insufficient for preventing a conflict.The text was updated successfully, but these errors were encountered: