PHPackages                             micvital/formbuilder - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. micvital/formbuilder

ActiveAsgard-module[Utility &amp; Helpers](/categories/utility)

micvital/formbuilder
====================

v0.1(6y ago)010MITJavaScriptPHP &gt;=5.6CI failing

Since Apr 23Pushed 6y ago1 watchersCompare

[ Source](https://github.com/MicVital/FormBuilder)[ Packagist](https://packagist.org/packages/micvital/formbuilder)[ RSS](/packages/micvital-formbuilder/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)Dependencies (4)Versions (2)Used By (0)

Formbuilder
===========

[](#formbuilder)

**This module is working, but in a very alpha version. Using is at your own risk!****You are welcome to work on it**

Table of contents
-----------------

[](#table-of-contents)

Prerequisites
Installation
Permission
Usage
Notice
Troubleshoot
Todo

Prerequisites
-------------

[](#prerequisites)

Due the package ist based on several prerequisites, you need follow the following steps:

1. Install Pingponglabs Shortcode Package
2. Install Formbuilder
3. Add middleware

Please follow the installation instructions below step by step.

Installation
------------

[](#installation)

### 1. Install Pingponglabs Shortcode Package

[](#1-install-pingponglabs-shortcode-package)

To display the forms in the frontend, it requires the Shortcode Module of Pingpong Sky Labs:

Due Pingponglabs changed the parse logic in the newest version, an incompatibility in some cases could occure. That's why we will fix the version to 2.1.

Please add this to your composer.json file:

```
    "pingpong/shortcode": "2.1",
```

Next, open a terminal and run.

```
    composer update
```

After the composer updated. Add new service provider in config/app.php.

```
  'Micvital\Shortcode\ShortcodeServiceProvider'
```

Add new Facade alias.

```
'Shortcode'       => 'Micvital\Shortcode\ShortcodeFacade',
```

Done.

### 2. Install Formbuilder

[](#2-install-formbuilder)

Now you can install the Formbuilder Please add this to your composer.json file:

```
    "stonelab/formbuilder": "~1.0"
```

and run composer update again.

Publish the module assets to the public folder. This is important. Not doing this will cause a lot of js errors and creating a form will not be possible

```
    php artisan asgard:module:publish Formbuilder
```

That's it.

### 3. Add middleware

[](#3-add-middleware)

To make it work, you need to add a middleware to the Page Module.
If you not already have it, create a file `asgard.page.config.middleware.php` under confid folder.

The content should look like:

```
