increments('id'); $table->integer('order_id')->nullable(); $table->string('orginal_path', 255)->nullable(); $table->string('cropped_path', 255)->nullable(); $table->integer('quantity')->nullable(); $table->integer('price')->nullable(); $table->string('crop_size', 15)->nullable(); $table->double('crop_left', 50)->nullable(); $table->double('crop_top', 50)->nullable(); $table->double('img_x', 50)->nullable(); $table->double('img_y', 50)->nullable(); $table->double('img_height', 50)->nullable(); $table->double('img_width', 50)->nullable(); $table->string('rotate', 10)->nullable(); $table->string('zoom', 20)->nullable(); $table->string('slug', 100)->nullable(); $table->integer('user_id')->nullable(); $table->string('upload_folder', 100)->nullable(); $table->softDeletes(); $table->nullableTimestamps(); }); } /* * Reverse the migrations. * * @return void */ public function down() { Schema::drop('order_items'); } }