Post Top Ad

Saturday, February 2, 2019

Laravel 5.8 Deprecates String and Array Helpers

         In the upcoming release of laravel 5.8, the array & string helper are deprecated. The next release of laravel 5.9 will be removed the array and string helper. It's based on the discussion of the PR 26898

The previous version of laravel

// Deprecated array_add($array, $key, $value);


The upcoming release of laravel 

// Use this directly Arr::add($array, $key, $value);


If you prefer to use the helper in your project.
Taylor suggests to pack into the packages laravel/helper




No comments:

Post a Comment