In Laravel 5.8 string and array helpers will be deprecated, and will removed in Laravel 5.9 https://laravel-news.com/laravel-5-8-deprecates-string-and-array-helpers
In this gist I will show you how to replace string helpers with Facade by using regex.
Copy this line put into find dialog, enable regex mode.
array_(add|collapse|divide|dot|except|first|flatten|forget|get|has|last|only|pluck|prepend|pull|random|set|sort|sort_recursive|where|wrap)
Replace with Array::$1
.
Copy this line put into find dialog, enable regex mode.
str_(after|before|contains|finish|is|limit|plural|random|replace_array|replace_first|replace_last|singular|slug|start)
Replace with Str::$1
.