id(); $table->foreignId('food_id'); $table->foreignId('user_id'); $table->mediumText('comment')->nullable(); $table->string('attachment')->nullable(); $table->integer('rating')->default(0); $table->foreignId('order_id')->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('reviews'); } }