id(); $table->string('provider'); $table->string('id_provider'); $table->string('avatar')->nullable(); $table->timestamps(); $table->foreignId('id_user') ->constrained('users') ->onDelete('cascade');; }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('providers'); } };