Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Created August 15, 2022 00:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/f5a45ba6df141bcaab440c089badddcf to your computer and use it in GitHub Desktop.
Save parzibyte/f5a45ba6df141bcaab440c089badddcf to your computer and use it in GitHub Desktop.
<?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->string("rol");
});
}
/**
* Reverse the migrations.
*
* @return void
*/
public function down()
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(["rol"]);
});
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment