API key management interface

This commit is contained in:
2021-03-30 01:27:49 +01:00
parent 6d94263ede
commit 99779c9053
11 changed files with 406 additions and 3 deletions

View File

@@ -92,6 +92,11 @@ class User extends Authenticatable implements MustVerifyEmail
return $this->hasMany('App\TeamFile', 'uploaded_by');
}
public function keys()
{
return $this->hasMany('App\ApiKey', 'owner_user_id');
}
// UTILITY LOGIC
public function isBanned()