resources/database/migrations/2015_10_23_115748_create_forms.php
public function up()
    {
        $this->down();
        Schema::create('tbl_forms', function(Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable();
            $table->integer('component_id')->unsigned()->index('component_id');
            $table->integer('action_id')->unsigned()->index('action_id');
            $table->text('value', 65535)->nullable();
        });
        Schema::create('tbl_forms_config', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('form_id')->unsigned()->index('form_id');
            $table->integer('brand_id')->unsigned()->index('brand_id');
            $table->integer('role_id')->unsigned()->index('role_id');
            $table->text('value', 65535)->nullable();
        });
        Schema::table('tbl_forms', function(Blueprint $table) {
            $table->foreign('component_id', 'tbl_forms_ibfk_1')->references('id')->on('tbl_components')->onUpdate('NO ACTION')->onDelete('CASCADE');
            $table->foreign('action_id', 'tbl_forms_ibfk_2')->references('id')->on('tbl_actions')->onUpdate('NO ACTION')->onDelete('CASCADE');
        });
        Schema::table('tbl_forms_config', function(Blueprint $table) {
            $table->foreign('brand_id', 'tbl_forms_config_ibfk_2')->references('id')->on('tbl_brands')->onUpdate('NO ACTION')->onDelete('CASCADE');
            $table->foreign('role_id', 'tbl_forms_config_ibfk_3')->references('id')->on('tbl_roles')->onUpdate('NO ACTION')->onDelete('CASCADE');
            $table->foreign('form_id', 'tbl_forms_config_ibfk_4')->references('id')->on('tbl_forms')->onUpdate('NO ACTION')->onDelete('CASCADE');
        });
    }
public function up()
    {
        $this->down();
        Schema::create('tbl_forms', function(Blueprint $table) {
            $table->increments('id');
            $table->string('name')->nullable();
            $table->integer('component_id')->unsigned()->index('component_id');
            $table->integer('action_id')->unsigned()->index('action_id');
            $table->text('value', 65535)->nullable();
        });
        Schema::create('tbl_forms_config', function(Blueprint $table) {
            $table->increments('id');
            $table->integer('form_id')->unsigned()->index('form_id');
            $table->integer('brand_id')->unsigned()->index('brand_id');
            $table->integer('role_id')->unsigned()->index('role_id');
            $table->text('value', 65535)->nullable();
        });
        Schema::table('tbl_forms', function(Blueprint $table) {
            $table->foreign('component_id', 'tbl_forms_ibfk_1')->references('id')->on('tbl_components')->onUpdate('NO ACTION')->onDelete('CASCADE');
            $table->foreign('action_id', 'tbl_forms_ibfk_2')->references('id')->on('tbl_actions')->onUpdate('NO ACTION')->onDelete('CASCADE');
        });
        Schema::table('tbl_forms_config', function(Blueprint $table) {
            $table->foreign('brand_id', 'tbl_forms_config_ibfk_2')->references('id')->on('tbl_brands')->onUpdate('NO ACTION')->onDelete('CASCADE');
            $table->foreign('role_id', 'tbl_forms_config_ibfk_3')->references('id')->on('tbl_roles')->onUpdate('NO ACTION')->onDelete('CASCADE');
            $table->foreign('form_id', 'tbl_forms_config_ibfk_4')->references('id')->on('tbl_forms')->onUpdate('NO ACTION')->onDelete('CASCADE');
        });
    }
Run the migrations.

@return void