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?
use str_limit, refer to this post
{{ str_limit($string, $limit = 10, $end = '...') }}
You can show a part (first 10 characters) of a string using
{{substr($myStr, 0, 10)}}
in laravel blade template.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With