Initial integration with Quicken (Intuit API), rework oauth tables, update/test google login

This commit is contained in:
Deon George
2022-08-12 14:53:06 +10:00
parent 70571cb6ac
commit 8fd79ce23e
16 changed files with 299 additions and 99 deletions

View File

@@ -6,24 +6,26 @@ use Illuminate\Bus\Queueable;
use Illuminate\Mail\Mailable;
use Illuminate\Queue\SerializesModels;
use App\Models\{AccountOauth,User};
use App\Models\{Site,User,UserOauth};
class SocialLink extends Mailable
{
use Queueable, SerializesModels;
public string $token;
public User $user;
public Site $site;
public ?User $user;
/**
* Create a new message instance.
*
* @param AccountOauth $o
* @param UserOauth $o
*/
public function __construct(AccountOauth $o)
public function __construct(UserOauth $o)
{
$this->site = $o->site;
$this->token = $o->link_token;
$this->user = $o->account->user;
$this->user = $o->user;
}
/**
@@ -37,7 +39,7 @@ class SocialLink extends Mailable
->markdown('email.system.social_link')
->subject('Link your Account')
->with([
'site'=>$this->user->site,
]);
'site'=>$this->site,
]);
}
}