Posts Learn Components Snippets Categories Tags Tools About

How to Enable Laravel Horizon Dark Mode

Learn how to enable Laravel horizon dark/night mode for better accessibility

Created on Jul 20, 2021


To enable Laravel Horizon dark/night mode you can define the config from the "HorizonServiceProvider" class. Inside the "boot" method you can uncomment the "Horizon::night()" and by doing so the dark mode will be enabled by default. Do note that this night mode is available for Horizon version 3 and above.
# app/Providers/HorizonServiceProvider.php


namespace App\Providers;

use Laravel\Horizon\Horizon;
use Illuminate\Support\Facades\Gate;
use Laravel\Horizon\HorizonApplicationServiceProvider;

class HorizonServiceProvider extends HorizonApplicationServiceProvider
  public function boot()

  /* other codes*/

Do note that if you recently just updated your horizon, do run the "horizon:publish" command to get the latest changes for the assets file.
php artisan horizon:publish

If you like our tutorial, do make sure to support us by being our Patreon or buy us some coffee ☕️

Load comments for How to Enable Laravel Horizon Dark Mode


PostSrc Code Components

Collection of Tailwind CSS components for everyone to use. Browse all of the components that are right for your project.

View Components

Sponsors 👑

+ Add Yours