vendredi 15 novembre 2019

Laravel uploaded file not appears in linked "public/storage" folder

When I run command: php artisan storage:link, this creates folder /public/storage.

then I have code, which handles uploaded file:

// get file original name and extension here, then generate file new name $fileNameToStore
// set file path
$path = $request->file('my_file')->storeAs('public/uploaded_imgs', $fileNameToStore);

Code works and uploaded file appears in /storage/app/public/uploaded_imgs/ folder, which is nice, though there is nothing in /public/storage folder.

Why there is not uploaded_imgs folder in /public/storage directory? What I'm doing wrong?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire