✨ Refactor Trakt configuration to use config file and dependency injection
This commit is contained in:
parent
347c0330b1
commit
caa1f0e442
5 changed files with 32 additions and 19 deletions
11
config/trakt.php
Normal file
11
config/trakt.php
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
'app_id' => env('TRAKT_APP_ID'),
|
||||
'app_secret' => env('TRAKT_APP_secret'),
|
||||
'redirect_uri' => env('TRAKT_REDIRECT_URI', 'urn:ietf:wg:oauth:2.0:oob'),
|
||||
'login' => [
|
||||
'device' => json_decode(env('TRAKT_DEVICE_RESP', '{}}'), true),
|
||||
'oauth' => json_decode(env('TRAKT_OAUTH_RESP', '{}}'), true),
|
||||
],
|
||||
];
|
||||
Loading…
Add table
Add a link
Reference in a new issue