increments('id'); $table->integer('user_id')->unsigned(); $table->integer('sender_id')->unsigned()->nullable(); $table->string('type'); $table->string('subject_type')->nullable(); $table->integer('subject_id')->unsigned()->nullable(); $table->binary('data')->nullable(); $table->dateTime('time'); $table->boolean('is_read')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::drop('notifications'); } }