feat: add avatar and role fields to User model and update BlogSeeder for Zeynep Demir profile

This commit is contained in:
Ümit Tunç
2026-05-24 10:49:49 +03:00
parent 3ed63cacb3
commit 8c00956f29
3 changed files with 42 additions and 5 deletions
@@ -0,0 +1,26 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::table('users', function (Blueprint $table) {
$table->string('avatar')->nullable()->after('password');
$table->string('role')->nullable()->after('avatar');
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table('users', function (Blueprint $table) {
$table->dropColumn(['avatar', 'role']);
});
}
};