{"id":5832,"date":"2025-09-01T08:34:35","date_gmt":"2025-09-01T08:34:35","guid":{"rendered":"https:\/\/www.voodoo.business\/blog\/?p=5832"},"modified":"2025-09-18T10:55:49","modified_gmt":"2025-09-18T10:55:49","slug":"laravel-socialite-with-socialite-ui","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2025\/09\/01\/laravel-socialite-with-socialite-ui\/","title":{"rendered":"Laravel Socialite with socialite-ui"},"content":{"rendered":"\n<p>In a previous post, I explained how to install the third party (socialite-ui) on your website, which itself was written to help people with the &#8220;Gradually migrating to Laravel&#8221; post, but it seems it is not enough, so here is how to fully get socialite working, much of the work is outside your website though, and i won&#8217;t be covering that, all you need to do is ask google, for example, how do i enable social logins with google or facebook etc&#8230;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The redirect problem<\/h3>\n\n\n\n<p>After registering or logging in, your user will be redirected to an absolutely empty &#8220;<strong>\/dashboard<\/strong>&#8220;, which is already handled by myrouter.php<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Email verification<\/h2>\n\n\n\n<p>Before doing anything, let us check that email is working using your SMTP credentials<\/p>\n\n\n\n<p>Create the following route for testing<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">use Illuminate\\Support\\Facades\\Mail;<br><br>Route::get('\/test-email', function () {<br>    Mail::raw('This is a test email.', function ($message) {<br>        $message-&gt;to('test@example.com')<br>                -&gt;subject('Test Email');<br>    });<br>    return 'Email sent!';<br>});<\/pre>\n\n\n\n<p>socialite-ui does not come with email verification (during registration) by default, you will need to enable it, this is simply by following the <a href=\"https:\/\/laravel.com\/docs\/12.x\/verification\">instructions here<\/a><\/p>\n\n\n\n<p>now edit the file (\/config\/socialite-ui.php) to enable the social logins you want enabled, and alter the other settings as per the page her (<a href=\"https:\/\/github.com\/Laravel-Uis\/socialite-ui\">https:\/\/github.com\/Laravel-Uis\/socialite-ui<\/a>)<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">php artisan config:clear<br>php artisan cache:clear<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>In a previous post, I explained how to install the third party (socialite-ui) on your website, which itself was written to help people with the &#8220;Gradually migrating to Laravel&#8221; post, but it seems it is not enough, so here is how to fully get socialite working, much of the work is outside your website though, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[124,123],"tags":[],"class_list":["post-5832","post","type-post","status-publish","format-standard","hentry","category-laravel","category-php"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/5832","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=5832"}],"version-history":[{"count":12,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/5832\/revisions"}],"predecessor-version":[{"id":5966,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/5832\/revisions\/5966"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=5832"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=5832"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=5832"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}