Adding logic to remove a folder

parent 5edebdc5
...@@ -40,4 +40,14 @@ class FolderController extends Controller ...@@ -40,4 +40,14 @@ class FolderController extends Controller
'data' => $folder, 'data' => $folder,
]); ]);
} }
public function destroy(File $folder)
{
$this->folder->destroy($folder);
return response()->json([
'errors' => false,
'message' => trans('media::messages.folder deleted'),
]);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment