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

تعليقات

المشاركات الشائعة من هذه المدونة

BlueHost Web Hosting Review: Secrets Revealed for Shared Hosting

How to Create Treeview with Bootstrap and jQuery

Submit Form using jQuery AJAX and PHP without Page Refresh