title: How to get extension file in Laravel 5?
body: <p>My code in view is like this : </p>
  
  <pre><code>@foreach($news as $row)
      &lt;div class="dealprice"&gt;
          &lt;p class="size8 red lh2"&gt;File Path: {{ $row-&gt;file_path}}&lt;/p&gt;
      &lt;/div&gt;                  
  @endforeach
  </code></pre>
  
  <p>The result of <code>{{ $row-&gt;file_path}}</code> : assets/images/Test.pdf</p>
  
  <p>I want the result : pdf</p>
  
  <p>How do I get the file extension?</p>
  
  <p>Thank you</p>