increments('id'); $table->integer('page_id')->unsigned()->nullable(); $table->foreign('page_id')->references('id')->on('pages'); $table->string('name'); $table->string('position')->nullable(); $table->string('google_code')->nullable(); $table->string('image')->nullable(); $table->string('jingle')->nullable(); $table->string('url')->nullable(); $table->boolean('online'); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('page_advs'); } }