Q:

Laravel 5 file delete issue

I have a file in public/images/demo.jpg but unable to delete by File::delete(public/images/demo.jpg) in windows. How to solve the issue.

A:

Try it with the correct path:
File::delete(public_path('images/demo.jpg'));

