From 2c63687f82ea23b6451ca3f57848648c5548f10e Mon Sep 17 00:00:00 2001 From: Awilum Date: Tue, 25 May 2021 19:42:34 +0300 Subject: [PATCH] feat(blueprints): add new method `form` to get instance of The Form class #25 --- app/Models/Blueprints.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/Models/Blueprints.php b/app/Models/Blueprints.php index 94585f5..3e215d9 100644 --- a/app/Models/Blueprints.php +++ b/app/Models/Blueprints.php @@ -462,6 +462,20 @@ public function getBlockID(string $id) : string return $blockID; } + /** + * Get instance of The Form class. + * + * @param array $data Form data. + * + * @return Returns instance of The Form class. + * + * @access public + */ + public function form(array $data): Form + { + return new Form($data); + } + /** * Get blueprint file location *