"Dark mode" 在 Laravel 6 异常页面上

"Dark mode" on Laravel 6 exception page

如何在 Laravel 6 Ignition(异常页面)中激活 "Dark mode"?

根据 Laravel 6 Ignition 文档。您可以通过将点火 config filetheme 键从 light 更改为 dark

来激活它

You can configure a theme in the theme key of the ignition config file. Out of the box there are two beautiful themes supported named light and dark

Ignition for Laravel -> Configuration -> Theme support

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

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

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

只需将此行添加到您的 .env 文件中即可:

IGNITION_THEME=dark