how to use helper function in laravel blade code example Example: laravel helper use Illuminate\Support\Str; $length = Str::length('Laravel'); // 7