Commit 5113365f authored by Nicolas Widart's avatar Nicolas Widart Committed by GitHub

Merge pull request #405 from moebrowne/bugfix/folder-name-validation

Added validation for folder names. Fixes #404
parents bfd7c30e 80f7f76c
......@@ -13,6 +13,7 @@ class CreateFolderRequest extends FormRequest
return [
'name' => [
'alpha_dash',
'required',
Rule::unique('media__files', 'filename')->where(function ($query) use ($parentId) {
return $query->where('is_folder', 1)->where('folder_id', $parentId);
......
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