Is there a way to truncate a string directly in the controller?
Something like:
'description' => $result->getDescription()->truncate(80),
Is there a way to truncate a string directly in the controller?
Something like:
'description' => $result->getDescription()->truncate(80),