Search

All tools
Laravel & PHP

Laravel Str Helper Playground

Try Laravel Str helpers such as slug, snake, kebab, mask, and limit on a sample string.

Examples

How it works

Illuminate\Support\Str powers Str::slug(), str()->headline(), and the rest of the string helpers. This playground only allows a whitelist of methods, so you cannot call arbitrary PHP. Use it to see how a title becomes a slug or how mask hides part of an email.

Related tools

Related reading

Your experience on this site will be improved by allowing cookies Cookie Policy