Added oauth login

This commit is contained in:
Deon George
2019-09-03 14:43:59 +10:00
parent 21ea60c4f9
commit 8224fba840
17 changed files with 426 additions and 21 deletions

View File

@@ -18,6 +18,9 @@ trait NextKey
static::creating(function($model)
{
$model->id = self::NextId();
if (! $model->site_id)
$model->site_id = config('SITE_SETUP')->id;
});
static::saved(function($model)