Aplikasi Keuangan yang mengatur lalu lintas transaksi antara bank dan aplikasi internal Kampus
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

21 lines
506 B

<?php
namespace App\Domains\Account\Actions\Profile;
use App\Domains\Account\DTOs\Profile\UpdateProfileDTO;
use App\Domains\Account\Models\Profile;
class UpdateProfile
{
public function execute(UpdateProfileDTO $dto): void
{
Profile::updateOrCreate(
['user_id' => $dto->userId],
[
'gender' => $dto->gender,
'date_of_birth' => $dto->dateOfBirth,
'phone_number' => $dto->phoneNumber,
]
);
}
}