mardi 23 février 2016

Laravel Public vs Storage directories for audio files

I am a little bit confused about in which directory I should put my .mp3 files in Laravel 5.

  • public/, my first choice as my MP3 can be considered as media (like images which are already stored there)
  • storage/app, according to docs this directory is kind of recommended for this purpose.

    enter image description here

I don't really mind being able to get an URL of these audio files since I serve it as a stream (to somehow prevent downloads, lol).

Any advice? Thanks.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire