Skip to content

Commit 35aea02

Browse files
committed
Updated GitHub repository name
1 parent 16107c6 commit 35aea02

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

app/Models/Document.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ class Document extends Model
4242
*/
4343
public function getEditUrl(): string
4444
{
45-
return "https://github.com/laravel-russia/docs/edit/$this->version/$this->file";
45+
return sprintf('https://github.com/%s/edit/%s/%s', config('services.github.repos.docs'), $this->version, $this->file);
4646
}
4747
}

config/services.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,22 @@
3636
'client_id' => env('GITHUB_CLIENT_ID'),
3737
'client_secret' => env('GITHUB_CLIENT_SECRET'),
3838
'redirect' => env('GITHUB_REDIRECT'),
39-
'docs_repo_url' => '[email protected]:laravel-russia/docs.git',
39+
'docs_repo_url' => '[email protected]:laravelsu/docs.git',
40+
'org_url' => 'https://github.com/laravelsu',
41+
'repos' => [
42+
'docs' => 'laravelsu/docs',
43+
'site' => 'laravelsu/laravel.su'
44+
]
4045
],
4146

4247
'donate' => [
4348
'yoomoney' => 'https://yoomoney.ru/to/4100118551993725',
4449
],
4550

51+
'telegram' => [
52+
'channel_url' => 'https://t.me/laravelsu',
53+
],
54+
4655
'telegram-bot-api' => [
4756
'bot_name' => env('TELEGRAM_BOT_NAME'),
4857
'token' => env('TELEGRAM_BOT_TOKEN'),

0 commit comments

Comments
 (0)