mardi 29 décembre 2015

get extension file in laravel 5

My code in view is like this :

@foreach($news as $row)
                            <div class="dealprice">
                                <p class="size8 red lh2">File Path: {{ $row->file_path}}</p>
                            </div>                  
                        @endforeach

The result of {{ $row->file_path}} : assets/images/Test.pdf

I want the result : pdf

How do I get the file extension?

Thank you



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1OjVPZT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire