Laravel 6异常页面上的“暗模式”

时间:2020-02-10 09:16:44

标签: laravel web-deployment laravel-6

enter image description here

如何在Laravel 6 Ignition(异常页面)中激活“黑暗模式”?

2 个答案:

答案 0 :(得分:4)

根据Laravel 6 Ignition文档。您可以通过将点火theme的{​​{1}}键从config file更改为light

来激活它

您可以在点火开关dark的主题键中配置主题。开箱即用,有两个受支持的精美主题,分别名为config filelight

Ignition for Laravel -> Configuration -> Theme support

答案 1 :(得分:3)

发布配置文件(如果尚不存在)。

php artisan vendor:publish --provider="Facade\Ignition\IgnitionServiceProvider" --tag="ignition-config"

然后,在config/ignition.php'theme' => env('IGNITION_THEME', 'dark'),