php - Laravel Public vs Storage directories for audio files -


i little bit confused in directory should put .mp3 files in laravel 5.

  • public/, first choice mp3 can considered media (like images stored there)
  • storage/app, according docs directory kind of recommended purpose.

    enter image description here

i don't mind being able url of these audio files since serve stream (to somehow prevent downloads, lol).

any advice? thanks.

guess depends on whether want direct public access or not.

public/ simpler. in there can link directly. js or css or images resources.

storage/app more secure, no way access directly. that's use (actually think i'd storage/app/audio specific) have more control on how accessed.


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -