increments('id'); $table->integer('parent_id')->nullable(); $table->integer('course_id')->nullable(); $table->string('name', 255)->nullable(); $table->time('duration')->nullable(); $table->text('link')->nullable(); $table->string('slug', 255)->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 255)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('topics'); } }