laravel helpers functions code example
Example 1: how to share a helper globally laravel
php artisan make:provider HelperServiceProvider
Example 2: how to share a helper globally laravel
'App\Providers\HelperServiceProvider',
Example 3: laravel helper
use Illuminate\Support\Str;
$length = Str::length('Laravel');
// 7