Admin Panel: Show Mailer menu only if config.mail_enabled

This commit is contained in:
slawkens
2020-10-07 23:54:03 +02:00
parent d7f41748ad
commit bb353d617a
2 changed files with 10 additions and 1 deletions

View File

@@ -1,9 +1,14 @@
<?php
$mailer = [];
if(config('mail_enabled')) {
$mailer = ['name' => 'Mailer', 'icon' => 'envelope', 'link' => 'mailer'];
}
return [
['name' => 'Dashboard', 'icon' => 'tachometer-alt', 'link' => 'dashboard'],
['name' => 'News', 'icon' => 'newspaper', 'link' => 'news'],
['name' => 'Mailer', 'icon' => 'envelope', 'link' => 'mailer'],
$mailer,
['name' => 'Pages', 'icon' => 'book', 'link' =>
[
['name' => 'All Pages', 'link' => 'pages'],