I'm trying to retrieve strings from my database using Laravel Eloquent queries. However, the data I get is in full caps. I want only the first letter to be in uppercase. Can anybody help me out?
$main = DB::table('master_accountsmain')->get()
I'm passing the main to my views using...
return view('home', 'main' => $main);
I have tried using ucfirst($main),
but it does not work. The data remains in uppercase.