resources/database/migrations/2014_07_31_123207_create_asset_manuals_table.php
public function up()
    {
        Schema::create('asset_manuals', function (Blueprint $table) {
            $table->integer('asset_id')->unsigned();
            $table->integer('attachment_id')->unsigned();

            $table->foreign('asset_id')->references('id')->on('assets')
                ->onUpdate('restrict')
                ->onDelete('cascade');

            $table->foreign('attachment_id')->references('id')->on('attachments')
                ->onUpdate('restrict')
                ->onDelete('cascade');
        });

        Schema::create('asset_images', function (Blueprint $table) {
            $table->integer('asset_id')->unsigned();
            $table->integer('attachment_id')->unsigned();

            $table->foreign('asset_id')->references('id')->on('assets')
                ->onUpdate('restrict')
                ->onDelete('cascade');

            $table->foreign('attachment_id')->references('id')->on('attachments')
                ->onUpdate('restrict')
                ->onDelete('cascade');
        });
    }
public function up()
    {
        Schema::create('asset_manuals', function (Blueprint $table) {
            $table->integer('asset_id')->unsigned();
            $table->integer('attachment_id')->unsigned();

            $table->foreign('asset_id')->references('id')->on('assets')
                ->onUpdate('restrict')
                ->onDelete('cascade');

            $table->foreign('attachment_id')->references('id')->on('attachments')
                ->onUpdate('restrict')
                ->onDelete('cascade');
        });

        Schema::create('asset_images', function (Blueprint $table) {
            $table->integer('asset_id')->unsigned();
            $table->integer('attachment_id')->unsigned();

            $table->foreign('asset_id')->references('id')->on('assets')
                ->onUpdate('restrict')
                ->onDelete('cascade');

            $table->foreign('attachment_id')->references('id')->on('attachments')
                ->onUpdate('restrict')
                ->onDelete('cascade');
        });
    }
Run the migrations.