. */ namespace App; use Illuminate\Database\Eloquent\Model; use Illuminate\Foundation\Auth\User as Authenticatable; class Account extends Authenticatable { protected $connection = 'external'; protected $with = ['passwords']; public function passwords() { return $this->hasMany('App\Password'); } public function nonces() { return $this->hasMany('App\DigestNonce'); } public function getIdentifierAttribute() { return $this->attributes['username'].'@'.$this->attributes['domain']; } }