Use google to find an excerpt function which suits you.
Jun 16, 2015
13
Level 6
How to limit string data in view
Hi I am making a cms now I have a view in which the description of the blog post needs to be small but it would print all the data coming from the database i.e blog->description will print all the data .
What I want is the description to be limited so that the user could click on Read More button to view all the content.
My view in which $blog->blogs_description is printing all the data.
Level 65
Should be able to use
Str::limit($value, $limit = 100, $end = '...')
str_limit() // is a helper
or
Str::words($value, $words = 100, $end = '...')
depending on if you want to end on a letter or word.
5 likes
Please or to participate in this conversation.

