Laravel ucfirst() function Example

In this tutorial you will learn about the Laravel ucfirst() function Example and its application with practical example.

In this article, I’ll show you how to use laravel ucfirst() function with example. We will show example of ucfirst() function in laravel. In this tutorial, we will use ucfirst() function to convert given string to first character capitalized.

Table Of Contents

Laravel ucfirst() function

The ucfirst method returns the given string with the first character capitalized

Example:-

Output:-

In this tutorial we have learn about the Laravel ucfirst() function Example and its application with practical example. I hope you will like this tutorial.