huruf pertama huruf besar

use Illuminate\Support\Str;

...

$string = Str::ucfirst('foo bar');
Xfantasia