Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save raksit31667/9de5b348f733fea852c9becf6cb261e3 to your computer and use it in GitHub Desktop.
Save raksit31667/9de5b348f733fea852c9becf6cb261e3 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.
*/
public function up(): void
{
Schema::create('accounts', function (Blueprint $table) {
$table->id();
$table->integer('user_id');
$table->string('account_no');
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('accounts');
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment