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