In the upcoming version of Laravel that is Laravel
\Illuminate\Support\StrIlluminate\Support\Arr directly instead of using the helpers.
The reason for deprecating them in Laravel 5.8 being that they add a lot of fucntions to the global namespace and in addition to that they migth conflict withe packages as well. Taylor Otwell has said in the PR ,
I think deprecating them is a good idea because right now we force them on developers and they do add a lot of functions to the global namespace that can conflict with other packages, etc.
That being said, I think we should package them up in a
laravel/helpersComposer package that people can pull into their projects if they want to quickly get them back in.
What we can conclude from the above statement is that there will be a helper function in
But it is still very early to predict as these are ongoing changes and we don’t know what future will hold.It is at the end of the day Taylor Otwell who has the last say here. You can see the upcoming Laravel 5.8 upgrade documentation on preferring String and Array classes over helpers