Skip to content

Fix nickname in name #41

Open
melodious1963 wants to merge 5 commits into
mainfrom
dev
Open

Fix nickname in name #41
melodious1963 wants to merge 5 commits into
mainfrom
dev

Conversation

@melodious1963

Copy link
Copy Markdown
Contributor

implements a small fix for nicknames, should help with the multiple names.

try {
$username = null;
$url = 'https://auth.debolk.nl/resource?access_token=' . $user->token;
$url = env('AUTH_URL', 'https://auth.debolk.nl/') . 'resource?access_token=' . $user->token;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't work, because the app uses config caching, so a call to env() will always return null. You'll need to create a config setting.

https://laravel.com/docs/12.x/deployment#optimizing-configuration-loading

protected function mapUserToObject(array $user)
{
return (new User())->setRaw($user);
return new User()->setRaw($user);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why this is in this PR, autoformatting?

Comment thread composer.json
"nunomaduro/collision": "^8.6",
"pestphp/pest": "^3.7",
"pestphp/pest-plugin-laravel": "^3.1",
"pestphp/pest": "^4.2",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same with above, unrelated to PR purpose?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants