File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace MailCarrier \Commands ;
4
4
5
+ use Illuminate \Support \Str ;
5
6
use MailCarrier \Helpers \SocialiteProviders ;
6
7
use Symfony \Component \Process \Process ;
7
8
@@ -151,7 +152,7 @@ protected function buildEnvs(): string
151
152
return <<<PHP
152
153
{$ envPrefix }_CLIENT_ID=
153
154
{$ envPrefix }_CLIENT_SECRET=
154
- {$ envPrefix }_REDIRECT_URI=
155
+ {$ envPrefix }_REDIRECT_URI=" \$ {APP_URL}/auth/callback"
155
156
{$ driverAdditionalEnv }
156
157
PHP ;
157
158
}
@@ -170,7 +171,7 @@ protected function showVariables(): void
170
171
171
172
foreach (preg_split ("/(( \r? \n)|( \r\n?))/ " , $ this ->buildEnvs ()) as $ line ) {
172
173
if (!empty ($ line )) {
173
- $ this ->line (' • ' . str_replace ( ' = ' , '' , $ line ));
174
+ $ this ->line (' • ' . Str:: before ( $ line , '= ' ));
174
175
}
175
176
}
176
177
}
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ class AuthServiceProvider extends ServiceProvider
19
19
{
20
20
$this->registerPolicies();
21
21
22
- MailCarrier::authorizeSocialAuth(function (\Laravel\Socialite\AbstractUser $user) {
22
+ MailCarrier::authorizeSocialAuth(function (\Laravel\Socialite\AbstractUser $user): bool {
23
23
return false;
24
24
});
25
25
}
You can’t perform that action at this time.
0 commit comments