Search⌘ K
AI Features

Formatting Strings with Kebab Casing

Explore how to apply kebab casing formatting on strings using Laravel's helper functions. Understand the conversion of uppercase letters to lowercase with hyphen prefixes, trimming whitespace, and producing clean, readable string outputs for your applications.

We'll cover the following...

Basic structure of kebab casing

The kebab helper method replaces all uppercase letters within the string with the lowercase variant prefixed with the - ...