I am trying create a query to output all my users but limit thier last name to one character for privacy reasons. I can seem to find a clean way to do this through Laravals Eloquent model.
public function getAll(){
$users = User::get(array('id', 'fname', 'lname'));
return $users
}
Desired response: { id: 1, fname: "Luca", lname: "D" }