How to display only a part of a string in laravel 5.2?

laravel-5, php, string

Solution

use str_limit, refer to this post

{{ str_limit($string, $limit = 10, $end = '...') }}

Problem

I have a description field with more than 100 words,but I need to show only 10 characters on my blade. How can I do this?

Original source

Related problems