src/mako/gatekeeper/repositories/user/UserRepository.php
public function getByUsername(string $username)
	{
		return $this->setAuthorizer($this->getModel()->where('username', '=', $username)->first());
	}
public function getByUsername(string $username)
	{
		return $this->setAuthorizer($this->getModel()->where('username', '=', $username)->first());
	}
public function getByUsername ( string $ username ) { return $ this -> setAuthorizer ( $ this -> getModel ( ) -> where ( 'username' , '=' , $ username ) -> first ( ) ) ; }
Fetches a user by its username.

@param  string                                   $username Username
@return \mako\gatekeeper\entities\user\User|bool
Fetches a user by its username .