mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-15 21:41:03 +08:00
finish oauth provider + docker service wait for MySQL
This commit is contained in:
@@ -10,6 +10,7 @@ class OauthProvider extends NexusModel
|
||||
protected $fillable = [
|
||||
'uuid', 'name', 'client_id', 'client_secret', 'authorization_endpoint_url', 'token_endpoint_url',
|
||||
'user_info_endpoint_url', 'id_claim', 'username_claim', 'email_claim', 'enabled', 'priority',
|
||||
'level_claim', 'level_limit',
|
||||
];
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
22
app/Models/SocialAccount.php
Normal file
22
app/Models/SocialAccount.php
Normal file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
|
||||
namespace App\Models;
|
||||
|
||||
use Laravel\Passport\Client;
|
||||
use Ramsey\Uuid;
|
||||
use function Ramsey\Uuid;
|
||||
|
||||
class SocialAccount extends NexusModel
|
||||
{
|
||||
protected $fillable = [
|
||||
'user_id', 'provider_id', 'provider_user_id', 'provider_username', 'provider_email',
|
||||
];
|
||||
|
||||
public $timestamps = true;
|
||||
|
||||
public function user()
|
||||
{
|
||||
return $this->belongsTo(User::class, 'user_id');
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user