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

تعليقات

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

5 Free Black and White Social Media Icons Sets with CSS and HTML

How to Create Treeview with Bootstrap and jQuery

How to Change Apache and MySQL Port Number in XAMPP Localhost