public function deleteFolder()
 {
     if (Auth::guest()) {
         return Redirect::to('/');
     }
     $folder_id = Request::input('delete_folder_id');
     $redirect_id = Folder::deleteFolder($folder_id);
     $root_id = Folder::getRootId();
     if ($redirect_id == $root_id) {
         return Redirect::to('/')->with('message', 'FOLDER ZOSTAŁ USUNIĘTY');
     } else {
         return Redirect::to('/id/' . $redirect_id)->with('message', 'FOLDER ZOSTAŁ USUNIĘTY');
     }
 }