To add Sign in with Slack to Laravel 13, install Socialite, create a Slack app with the Sign in with Slack (OpenID Connect) feature, put its credentials under the slack-openid key in config/services.php and use Socialite::driver('slack-openid') in a redirect route and a callback route. This guide walks through the setup and a safe callback.
Targets: Laravel 13 (PHP 8.3 to 8.5) and laravel/socialite . The Socialite documentation lists both slack and slack-openid ; this article uses slack-openid because it matches Slack's OpenID Connect sign-in. Confirm the driver name against the documentation for your installed version.
Step 1: Install Socialite
composer require laravel/socialite
Enter fullscreen mode
Exit fullscreen mode
Step 2: Create the Slack app
Go to the Slack API site and choose Create New App , then From scratch .
Pick a name and the workspace you will use for development.
Open OAuth & Permissions and add your callback URL under Redirect URLs , for example…