hasMany('App\TwoFAccount'); } /** * Get the group * * @return integer */ public function getIsActiveAttribute() { $activeGroupId = intval(Options::get('activeGroup')); return $this->id === $activeGroupId ? true : false; } }