File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
src/app/Library/CrudPanel Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -221,19 +221,6 @@ public function on(string $event, \Closure $closure)
221221 return $ this ->save ();
222222 }
223223
224- /**
225- * Mark the field has having upload functionality, so that the form would become multipart.
226- *
227- * @param bool $upload
228- * @return self
229- */
230- public function upload ($ upload = true )
231- {
232- $ this ->attributes ['upload ' ] = $ upload ;
233-
234- return $ this ->save ();
235- }
236-
237224 /**
238225 * When subfields are defined, pass them through the guessing function
239226 * so that they have label, relationship attributes, etc.
@@ -253,6 +240,19 @@ public function subfields($subfields)
253240 return $ this ->save ();
254241 }
255242
243+ /**
244+ * Mark the field has having upload functionality, so that the form would become multipart.
245+ *
246+ * @param bool $upload
247+ * @return self
248+ */
249+ public function upload ($ upload = true )
250+ {
251+ $ this ->attributes ['upload ' ] = $ upload ;
252+
253+ return $ this ->save ();
254+ }
255+
256256 /**
257257 * Save the validation rules on the CrudPanel per field basis.
258258 *
You can’t perform that action at this time.
0 commit comments