Php 如何使用Firebase中的用户身份验证更改Laravel中的User::Model

Php 如何使用Firebase中的用户身份验证更改Laravel中的User::Model,php,laravel,firebase,google-cloud-firestore,firebase-authentication,Php,Laravel,Firebase,Google Cloud Firestore,Firebase Authentication,最近,我使用composer require Laravel/ui制作了Laravel auth,我可以使用MySQL编辑/创建用户,其中作为Firebase的auth用户 我还可以为每个数据库创建/编辑用户,目前一切正常,但我只想创建一个新的用户表单Laravel{RegisterController} 我可以用Firebase创建用户,但是我应该返回什么值或什么对象才能与Laravel auth兼容 使用Laravel创建用户 return User::create([

最近,我使用
composer require Laravel/ui
制作了Laravel auth,我可以使用MySQL编辑/创建用户,其中作为Firebase的auth用户

我还可以为每个数据库创建/编辑用户,目前一切正常,但我只想创建一个新的用户表单Laravel{RegisterController}

我可以用Firebase创建用户,但是我应该返回什么值或什么对象才能与Laravel auth兼容

使用Laravel创建用户

 return User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
        ]);
  public function __construct()
    {
        $this->serviceAccount=ServiceAccount::fromValue(__DIR__.'/FirebaseKey.json');
        $this->firebase=(new Factory)->withServiceAccount($this->serviceAccount);
        $this->auth=$this->firebase->createAuth();
    }
public function Create_User($userProperties=[]){
        return  $this->auth->createUser($userProperties);
    }
使用FireBase创建用户

 $userProperties = [
            'email' => $data['email'],
            'emailVerified' => false,
            'password' =>  Hash::make($data['password']),
            'displayName' =>  $data['name'],
        ];
        $user = new AuthController();
        return $user->Create_User($userProperties);
AuthController类

 return User::create([
            'name' => $data['name'],
            'email' => $data['email'],
            'password' => Hash::make($data['password']),
        ]);
  public function __construct()
    {
        $this->serviceAccount=ServiceAccount::fromValue(__DIR__.'/FirebaseKey.json');
        $this->firebase=(new Factory)->withServiceAccount($this->serviceAccount);
        $this->auth=$this->firebase->createAuth();
    }
public function Create_User($userProperties=[]){
        return  $this->auth->createUser($userProperties);
    }
使用dd()返回值;-->用户(Laravel)

使用dd()返回值;-->用户(Firebase)