Check users number for validity for SMS verifications

This commit is contained in:
David Bomba 2022-11-02 17:45:19 +11:00
parent eecdab00e7
commit e3b37edb4d

View File

@ -12,6 +12,7 @@
namespace App\Observers;
use App\Models\User;
use App\Utils\Ninja;
class UserObserver
{
@ -23,7 +24,9 @@ class UserObserver
*/
public function created(User $user)
{
if (Ninja::isHosted() && isset($user->phone)) {
}
}
/**
@ -34,7 +37,9 @@ class UserObserver
*/
public function updated(User $user)
{
if (Ninja::isHosted() && $user->isDirty('phone')) {
}
}
/**