I am having a problem using the filesystem in Laravel 5.3. I am trying to save a file to my local storage but when I call either $file->store('directory', 'local')
or Storage::putFile('directory', $file)
it stores in the correct location storage/app/directory/filename
but the path returned by both functions does not include the path to the storage/app
directory, just directory/filename
.
My local storage driver config is as below:
'local' => [
'driver' => 'local',
'root' => storage_path('app'),
],
Obviously I could wrap the $path with the storage_path()
helper but this doesn't seem right when reading the docs. http://ift.tt/2e6Grpw
Am I doing wrong or missing something?
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2jZ3BwQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire