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.
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
Post a Comment