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

تعليقات

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

How to Create Treeview with Bootstrap and jQuery

Api routes not found when hosted laravel application on server

How to Add Images to Dropdown List using jQuery