Str_limit Not Working in Laravel

Published: Nov 06, 2019 - Updated: Mar 16, 2022

In Laravel 6 str_limit() and this related string & array function are not found.
So, the solution I found that you just use this class for string,

Illuminate\Support\Str

and, use this class for array

Illuminate\Support\Arr

Or you can add new laravel\helper

composer require laravel/helpers