If you pass a non-exists path to function realpath
, it returns empty string. So please don't do something like :
function storage_path($folder) {
return realpath(__DIR__.'/storage/'.$folder);
}
if you expect it return full path of new folder !
If you pass a non-exists path to function realpath
, it returns empty string. So please don't do something like :
function storage_path($folder) {
return realpath(__DIR__.'/storage/'.$folder);
}
if you expect it return full path of new folder !
Sound good ?
0 kudos, click the star if you think this post is value !
Read more
about #til