Using camelCase

parent 86dfd060
...@@ -9,13 +9,13 @@ class CreateFolderRequest extends FormRequest ...@@ -9,13 +9,13 @@ class CreateFolderRequest extends FormRequest
{ {
public function rules() public function rules()
{ {
$parentID = $this->get('parent_id'); $parentId = $this->get('parent_id');
return [ return [
'name' => [ 'name' => [
'required', 'required',
Rule::unique('media__files', 'filename')->where(function ($query) use ($parentID) { Rule::unique('media__files', 'filename')->where(function ($query) use ($parentId) {
return $query->where('is_folder', 1)->where('folder_id', $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