jeudi 12 août 2021

file_exists return false when file exist

I have tried

if(file_exists(storage_path().'test.txt' )) {
    dd("YES, it's there.");
}else {
    dd("Nope, it's not exist");
}

I have test.txt in my storage folder.

enter image description here

What did I missed ?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3fZydgT
via IFTTT

Aucun commentaire:

Enregistrer un commentaire