0

composer

"require": {
    "php": "^7.1.3",
    "fideloper/proxy": "^4.0",
    "laravel/framework": "5.8.*",
    "laravel/tinker": "^1.0",
    "tcg/voyager": "^1.2"
}

我想将航海者转换为rtl版本,谢谢。

4

2 回答 2

2
  1. 将 'rtl'=>true 添加到多语言数组中的 voyager 文件配置中。
  2. 在 app.php 配置文件中将本地值更改为“ar”或“fa”或所有 rtl 语言。
  3. 清除配置缓存 laravelphp artisan config:cache
于 2020-07-26T20:45:29.593 回答
2

在你的 laravel 项目中转到 config/voyager.php

你会发现一个名为“多语言”的数组,将 'rtl' 选项更改为 true,它将 rtl 整个 laravel voyager 管理面板。代码如下所述。

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

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

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

    /*
     * Select languages that are supported.
     */
    'locales' => [
        'en',
        //'pt',
    ],
],
于 2020-01-23T10:17:29.007 回答