Using Laravel’s deleteDirectory to delete folders and their contents
If you ever needed a simple solution in Laravel to delete an entire directory and its contents the File facade has the answer. deleteDirectory() will delete everything, both files and…