title: Show N number of characters in Laravel using PHP
body: <p>I want to show N number of characters in my Laravel website using PHP. For that I have used string function <code>str_limit()</code></p>
  
  <blockquote>
    <p>{!! str_limit($data->details ,'40') !!}</p>
  </blockquote>
  
  <p>But No data is shown in the site though <code>$data-&gt;details</code> has value. If I use <code>{{ $data-&gt;details }}</code> then it shows the whole value. But I want N number characters in the website.</p>
  
  <p>Any help please....
  If any further questions to clarify please ask</p>