Search

Programming
Programming

We provide developers and engineers the guides and tutorials they...

Content
Content

Content is king. It's not just about how you're going to write, b...

Events
Events

Looking for an engaging connection with thousands of other people...

All tools
Laravel & PHP

Laravel Str Helper Playground

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

Result

Php Regex Tester

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