increments('id'); $table->integer('user_id')->unsigned()->index(); $table->string('endpoint', 500)->unique(); $table->string('public_key')->nullable(); $table->string('auth_token')->nullable(); $table->timestamps(); $table->foreign('user_id') ->references('id') ->on('users') ->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('push_subscriptions'); } }