ソースを参照

增加 Form::addVariables 方法

jqh 4 年 前
コミット
4321a4caca
1 ファイル変更12 行追加0 行削除
  1. 12 0
      src/Form.php

+ 12 - 0
src/Form.php

@@ -1369,6 +1369,18 @@ class Form implements Renderable
         return $this;
     }
 
+    /**
+     * @param array $vars
+     *
+     * @return $this
+     */
+    public function addVariables(array $vars)
+    {
+        $this->builder->addVariables($vars);
+
+        return $this;
+    }
+
     /**
      * Get or set title for form.
      *