increments('id'); $table->integer('category_id')->nullable(); $table->string('name', 255)->nullable(); $table->string('code', 255)->nullable(); $table->text('description')->nullable(); $table->string('file_name', 255)->nullable(); $table->text('files')->nullable(); $table->string('slug', 200)->nullable(); $table->enum('status', ['Yes','No'])->nullable(); $table->integer('user_id')->nullable(); $table->string('user_type', 100)->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('documents'); } }