validate first letter is uppercase laravel code example
Example: laravel uppercase first letter
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');
use Illuminate\Support\Str;
...
$string = Str::ucfirst('foo bar');