increments('id'); $table->string('name', 255)->nullable(); $table->string('tagline', 30)->nullable(); $table->text('summary')->nullable(); $table->text('description')->nullable(); $table->text('demo')->nullable(); $table->integer('price')->nullable(); $table->string('version', 10)->nullable(); $table->text('images')->nullable(); $table->string('tags', 225)->nullable(); $table->integer('viewcount')->nullable(); $table->string('works_on', 20)->nullable(); $table->string('slug', 255)->nullable(); $table->enum('status', ['draft','completed','approved','published'])->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('products'); } }