--- title: '`Str::mask()` lets you mask a portion of a string with a character (e.g. *)' tweet_id: '1596508370952855553' thread_slug: weekly-thread-2022-35 author_username: PovilasKorop images: - 'https://pbs.twimg.com/media/FhCmZ9IX0AAiTED.jpg' created_at: 2022-11-26T14:17:11+00:00 slug: strmask-lets-you-mask-a-portion-of-a-string-with-a-character-eg --- Laravel tip. From Laravel 8.69, there's a "Str::mask()" method which masks a portion of the string with a repeated character like "*".