Laravel 5.8 Deprecates String and Array Helpers

Laravel 5.8 Deprecates String and Array Helpers

In Laravel upcoming 5.8’s release, the global string and array helpers are deprecated. The helper functions will be removed in Laravel 5.9. You can see the full list of helper functions deprecated in the merged pull request (PR #26898). The helpers will still be available in 5.8. However, you should use the \Illuminate\Support\Str and Illuminate\Support\Arr classes directly instead of using the helpers:

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

0 Comments

Leave a reply

your email address will not be published. required fields are marked *

Categores Themes

Featured Themes

Flowerx - CSS3 Image Hover Effects