Current Path : /home/lentoinv/api.lentoria.com/database/migrations/ |
Current File : /home/lentoinv/api.lentoria.com/database/migrations/2022_09_05_094136_add_role_to_users_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('users', function (Blueprint $table) { $table->integer('role')->default(0); }); } /** * Reverse the migrations. * * @return void */ public function down() { Schema::table('users', function (Blueprint $table) { // }); } };