简体   繁体   English

Laravel Voyager 管理面板显示断开的链接文本

[英]Laravel Voyager admin panel showing with broken link texts

I've just installed Voyager admin panel and the link texts appear broken, like the picture:我刚刚安装了 Voyager 管理面板,链接文本出现损坏,如图:

在此处输入图片说明

在此处输入图片说明

My #voyager.php is like this ->我的#voyager.php 是这样的 ->

   'multilingual' => [
    /*
     * Set whether or not the multilingual is supported by the BREAD input.
     */
    'enabled' => true,

    /*
     * Set whether or not the admin layout default is RTL.
     */
    'rtl' => false,

    /*
     * Select default language
     */
    'default' => 'en',

    /*
     * Select languages that are supported.
     */
    'locales' => [
        'en',
        'pt',
    ],
],

I found a similar question here but without answers.我在这里找到了一个类似的问题,但没有答案。

I've just created a new database and run again the php artisan voyager:install --with-dummy command.我刚刚创建了一个新数据库并再次运行php artisan voyager:install --with-dummy命令。

Now the links appear to be normal!现在链接似乎正常了!

This is a translate issue, just change in app.php:这是一个翻译问题,只需在 app.php 中更改:

'locale' => 'en'

to solve the issue.来解决问题。 It worked for me.它对我有用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM