From 8d3f18090ff9dff996e01f62b91270e6965a3b7c Mon Sep 17 00:00:00 2001 From: Lupu Gheorghe Date: Fri, 30 Jun 2023 02:52:28 +0300 Subject: [PATCH] fix #66 fix #69 --- app/Models/User.php | 1 + .../migrations/2023_05_05_142245_update_users.php | 2 ++ .../Partials/UpdateProfileInformationForm.vue | 12 +++++++++--- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/Models/User.php b/app/Models/User.php index 23bf73c4..56a52427 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -30,6 +30,7 @@ class User extends Authenticatable implements FilamentUser 'email', 'password', 'role', + 'phone', 'organization_id', ]; diff --git a/database/migrations/2023_05_05_142245_update_users.php b/database/migrations/2023_05_05_142245_update_users.php index 6ff28849..4e1f2f10 100644 --- a/database/migrations/2023_05_05_142245_update_users.php +++ b/database/migrations/2023_05_05_142245_update_users.php @@ -16,6 +16,8 @@ public function up(): void { Schema::table('users', function (Blueprint $table) { $table->enum('role', ['donor', 'ngo-admin', 'bb-manager', 'bb-admin']); + $table->string('phone')->nullable(); + $table->string('source_of_information')->nullable(); $table->foreignIdFor(Organization::class)->nullable()->constrained(); }); } diff --git a/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue b/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue index 1558d9ba..4702f242 100644 --- a/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue +++ b/resources/js/Pages/Profile/Partials/UpdateProfileInformationForm.vue @@ -2,7 +2,7 @@
- +

{{ $t('account_settings') }}

@@ -74,8 +74,8 @@ { + console.log('mounted') +});