id(); $table->text('link'); $table->string('title'); $table->integer('order')->default(0); $table->integer('click_number')->default(0); $table->enum('up_link', ['yes', 'no'])->default('no'); $table->unsignedbigInteger('user_id'); $table->unsignedbigInteger('button_id'); $table->foreign('user_id')->references('id')->on('users'); $table->foreign('button_id')->references('id')->on('buttons'); $table->timestamps(); $table->string('custom_css')->default(''); $table->string('custom_icon')->default('fa-external-link'); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::dropIfExists('links'); } }