Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add buildProvider method on DockBlock for IDE support #643

Merged
merged 2 commits into from
Jun 6, 2023

Conversation

emrancu
Copy link
Contributor

@emrancu emrancu commented Jun 6, 2023

I have added buildProvider method on Socialite facade dockblock.

It will help IDE to suggest us the method exist.

We need buildProvider method for dynamic config ( redirect URL), specially for multitenant application.

@taylorotwell
Copy link
Member

This doesn't exist on all providers?

@taylorotwell taylorotwell reopened this Jun 6, 2023
@taylorotwell taylorotwell merged commit 27e0375 into laravel:5.x Jun 6, 2023
18 of 19 checks passed
@joelstein
Copy link

Thank you for this PR.

Can you post a code example of how to use buildProvider to customize the redirect URL?

@emrancu
Copy link
Contributor Author

emrancu commented Jun 6, 2023

@joelstein Thank for approve my PR.

Here is example:

   $config =  config('services.google');
   $config['redirect'] = getCustomRedirectUrl();
   return Socialite::buildProvider(GoogleProvider::class, $config)->redirect();

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.

None yet

3 participants