title: Deleting a folder with files in Laravel
body: <p>What is the proper syntax when deleting a folder with files in laravel 5.2? </p>
  
  <p>Here is my syntax when deleting the folder from the DB and DIR</p>
  
  <pre><code>$folder = Folder::find($id);
  $folder_path = storage_path('locker').'/'. $folder-&gt;folder_title;
  $folder-&gt;delete();
   `rmdir($folder_path);`
  \Session::flash('success', 'Folder Deleted!');
  return back();
  </code></pre>