Conditions | 2 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
30 | public function handle() |
||
31 | { |
||
32 | $redirect = $this->option('redirect') ?? null; |
||
33 | |||
34 | if (!$route = config('revolut.auth_route.name')) { |
||
35 | $this->error('Route name invalid or missing'); |
||
36 | $this->error('Check you configuration and verify that "auth_route.name" is valid'); |
||
37 | return; |
||
38 | } |
||
39 | |||
40 | $url = route($route, ['after_success' => $redirect]); |
||
41 | |||
42 | $this->info('Follow the link to complete the authorization:'); |
||
43 | $this->line('<fg=black;bg=yellow>' . $url . '</>'); |
||
44 | } |
||
46 |