skip to Main Content

migrate command in laravel – Phpmyadmin

articles table public function up() { Schema::create('Articles', function (Blueprint $table) { $table->bigIncrements('id'); $table->integer('user_id')->unsigned(); $table->string('title'); $table->string('body'); $table->timestamps(); $table->foreign('user_id')->references('id') ->on('users')->onDelete('cascade'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('Articles'); } tags table public function…

VIEW QUESTION
Back To Top
Search