increments('id'); $table->integer('user_id')->nullable(); $table->text('user_type')->nullable(); $table->integer('parent_id')->nullable(); $table->integer('nest_left')->nullable(); $table->integer('nest_right')->nullable(); $table->integer('nest_depth')->nullable(); $table->string('name', 255)->nullable(); $table->text('description')->nullable(); $table->enum('type', ['main_category','category','subcategory'])->nullable(); $table->string('slug', 255)->nullable(); $table->text('meta_tag')->nullable(); $table->text('meta_keyword')->nullable(); $table->enum('status', ['show','hide'])->nullable(); $table->integer('sort_order')->nullable(); $table->string('image', 2555)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('categories'); } }