id(); $table->text('name'); $table->unsignedInteger('price')->nullable(); $table->unsignedInteger('weigh')->nullable(); $table->foreignId("category_id")->references("id")->on("categories"); $table->text('composition', 255)->nullable(); $table->timestamps(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('dishes'); } }