title: how to show project name in limited characters in Laravel?
body: <p>I need show My laravel application project name with limited characters. that means as an example consider some project name contains more than 10 letters, then I need only show 10 characters.</p>
  
  <p>My project name create controller is</p>
  
  <pre><code>public function store(Request $request)
      {
          $this-&gt;validate($request, [
              'name'     =&gt; 'required|min:3',
              'notes'    =&gt; 'required|min:10',
              'color'    =&gt; 'required',
              'group'    =&gt; 'required',
              'status'   =&gt; 'required'
          ]);
  
          $project = new Project;
          $project-&gt;project_name   = $request-&gt;input('name');
          $project-&gt;project_status = $request-&gt;input('status');
          $project-&gt;group          = $request-&gt;input('group');
          $project-&gt;color          = $request-&gt;input('color');
          $project-&gt;project_notes  = $request-&gt;input('notes');
          $project-&gt;user_id        = Auth::user()-&gt;id;
  
          $duplicate = Project::where('project_name',$project-&gt;project_name)-&gt;first();
          if($duplicate)
          {
              return redirect()-&gt;route('projects.index')-&gt;with('warning','Title already exists');
          }   
  
          $project-&gt;save();
          return redirect()-&gt;route('projects.index')-&gt;with('info','Your Project has been created successfully');
  </code></pre>
  
  <p>and project name showing blade file is </p>
  
  <pre><code>&lt;div class="row"&gt;
               @foreach ($projects as $proj)
                 &lt;div class="col-md-3" style="border:3px solid {!!$proj-&gt;color!!};margin-left:5px;margin-bottom: 5px;"&gt;
                 &lt;h2&gt;&lt;a href="/projects/{{ $proj-&gt;id }}"&gt;{!! $proj-&gt;project_name !!}&lt;/a&gt;&lt;/h2&gt;
  </code></pre>
  
  <p>then how can I show only 10 charactors in My blade file?</p>