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\Arr classes directly instead of using the helpers:
// Deprecated array_add($array, $key, $value); // Use this directly Arr::add($array, $key, $value);
If you do prefer to use the helpers, Taylor Otwell suggested in the pull request that these helpers will be packaged up in something like a
laravel/helpers package that allows people to pull them into their projects to quickly get them back.
You can see the upcoming Laravel 5.8 upgrade documentation on preferring String and Array classes over helpers:
This impact of this change has been marked as medium since a future, opt-in package would prevent any breaking changes.
I want to caution that it’s still early in the deprecation process and nothing is finalized as far as how Laravel moves forward with an optional package, but it seems clear that Laravel will offer a voluntary helpers package if you want to keep using them.Filed in: Laravel 5.8 / laravel 5.8
Join 31,000+ others and never miss out on new tips, tutorials, and more.
- Senior Full-Stack Engineer
[REMOTE: USA Only] All Other Applications Will be Rejected Immediately"
- Senior Full Stack PHP Developer
Motto Design Studio
- 👉 Looking for Senior Back-End Laravel API Developer - Immediate (Full-time Contractor) 🎉
ApproveMe.com // The Document Signing Experience™
- Senior Software Engineer
Remote or Los Angeles
- Sr. Software Engineer
Salt Lake City, UT
Subdomain Multitenency Package for Laravel
Romega Digital released a package to make it easier to create subdomain-based multitenancy in your Laravel applicatio…
Scout Extended Released
Scout Extended is an improved integration with Laravel Scout and Algolia that helps you create better relevance for y…