Skip to content

Commit

Permalink
feat(blueprints): add new method form to get instance of The Form c…
Browse files Browse the repository at this point in the history
…lass #25
  • Loading branch information
Awilum committed May 25, 2021
1 parent 20e149b commit 2c63687
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions app/Models/Blueprints.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 2c63687

Please sign in to comment.