samedi 3 juin 2017

Laravel How to make download link only for authenticate user?

I have some files on public directory files folder. I want to send the user the link of a specific file.Right now I'm giving the link by following way.

<a href="">
    <button class="btn btn-success">Download</button>
</a>

By which actually user know where my directory is..Can i make the download link that way in which only authenticate user can download the file or i can hide the directory from url?



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

Aucun commentaire:

Enregistrer un commentaire