Current Path : /home/lentoinv/api.lentoria.com/database/migrations/ |
Current File : //home/lentoinv/api.lentoria.com/database/migrations/2022_09_08_065910_add_slug_to_topics_table.php |
<?php use Illuminate\Database\Migrations\Migration; use Illuminate\Database\Schema\Blueprint; use Illuminate\Support\Facades\Schema; return new class extends Migration { /** * Run the migrations. * * @return void */ public function up() { Schema::table('topics', function (Blueprint $table) { $table->string('slug')->nullable(); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('topics', function (Blueprint $table) { // }); } };