Skip to content
This repository was archived by the owner on Mar 16, 2024. It is now read-only.

Commit 31ce532

Browse files
committed
Improve menu configuration
1 parent b29fdb0 commit 31ce532

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

config/menu.php

+13-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,18 @@
33
declare(strict_types=1);
44

55
return [
6+
'header' => [
7+
'links' => [
8+
'https://laravel.com/' => 'Laravel',
9+
'https://laravel-idea.com' => 'Laravel IDEA',
10+
'https://sleepingowladmin.ru/' => 'SleepingOwl',
11+
'https://orchid.software/ru/' => 'Orchid',
12+
'https://t.me/laravelrus' => 'Telegram',
13+
'https://vk.com/laravel_rus' => 'VK',
14+
'https://discord.gg/c8gJfed' => 'Discord',
15+
'https://github.com/LaravelRUS' => 'GitHub',
16+
]
17+
],
618
'footer' => [
719
'nav' => [
820
'Русскоязычное комьюнити' => [
@@ -25,9 +37,9 @@
2537
],
2638
],
2739
'menu' => [
28-
//'#' => 'О сайте',
2940
'https://github.com/LaravelRUS/chat' => 'Правила',
3041
'https://github.com/LaravelRUS/laravel.su' => 'Исходники',
42+
'https://laravel-rus.sentry.io/' => 'Sentry',
3143
'https://vk.com/laravel_rus?w=app5727453_-53758340' => 'Помощь проекту',
3244
],
3345
],

resources/views/partials/header.blade.php

+3-8
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
11
<header class="header">
22
<section class="extras">
33
<nav class="container extras-items">
4-
<a href="https://laravel.com/" target="_blank" rel="nofollow">Laravel</a>
5-
<a href="https://laravel-idea.com" target="_blank" rel="nofollow">Laravel IDEA</a>
6-
<a href="https://sleepingowladmin.ru/" target="_blank" rel="nofollow">SleepingOwl</a>
7-
<a href="https://orchid.software/ru/" target="_blank" rel="nofollow">Orchid</a>
8-
<a href="https://vk.com/laravel_rus" target="_blank" rel="nofollow">Сообщество</a>
9-
<a href="https://discord.gg/c8gJfed" target="_blank" rel="nofollow">Discord</a>
10-
<a href="https://t.me/laravelrus" target="_blank" rel="nofollow">Telegram</a>
11-
<a href="https://github.com/LaravelRUS" target="_blank" rel="nofollow">GitHub</a>
4+
@foreach(config('menu.header.links') as $uri => $title)
5+
<a href="{{ $uri }}" target="_blank" rel="nofollow">@lang($title)</a>
6+
@endforeach
127
</nav>
138
</section>
149

0 commit comments

Comments
 (0)