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 ?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire