Skip to content

Commit

Permalink
fix #66 fix #69
Browse files Browse the repository at this point in the history
  • Loading branch information
gheorghelupu17 committed Jun 29, 2023
1 parent f3f221e commit 8d3f180
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class User extends Authenticatable implements FilamentUser
'email',
'password',
'role',
'phone',
'organization_id',
];

Expand Down
2 changes: 2 additions & 0 deletions database/migrations/2023_05_05_142245_update_users.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<section>

<header class="mt-12 flex items-center gap-4">
<SvgLoader name="user"/>
<SvgLoader name="user" class="fill-white"/>
<h2 class="text-2xl font-bold text-gray-900">{{ $t('account_settings') }}</h2>
</header>

Expand Down Expand Up @@ -74,8 +74,8 @@

<!-- Save button -->
<PrimaryButton
background="turqoise-500"
hover="turqoise-400"
background="primary-500"
hover="primary-400"
color="white"
:class="{ 'opacity-25': form.processing }"
:disabled="form.processing"
Expand All @@ -100,6 +100,7 @@
import SvgLoader from '@/Components/SvgLoader.vue';
import PrimaryButton from '@/Components/buttons/PrimaryButton.vue';
import SecondaryButton from '@/Components/buttons/SecondaryButton.vue';
import {onMounted} from "vue";
/** Component props. */
defineProps({
Expand All @@ -118,5 +119,10 @@
const form = useForm({
name: user.name,
email: user.email,
phone: user.phone,
});
onMounted(() => {
console.log('mounted')
});
</script>

0 comments on commit 8d3f180

Please sign in to comment.