Posts Learn Components Snippets Categories Tags Tools About

How to Enable Laravel Telescope Dark Mode

Learn how to enable Laravel Telescope dark/night mode for better accessibility and reduce strain on eyes

Created on Jul 20, 2021


To enable the dark/night mode on Laravel Telescope you can define the "Telescope::night()" option inside your "TelescopeServiceProvider" class.

You can refer the full code example from below.
# app/Providers/TelescopeServiceProvider.php

<?php namespace App\Providers; use Illuminate\Support\Facades\Gate; use Laravel\Telescope\IncomingEntry; use Laravel\Telescope\Telescope; use Laravel\Telescope\TelescopeApplicationServiceProvider; class TelescopeServiceProvider extends TelescopeApplicationServiceProvider { /** * Register any application services. * * @return void */ public function register() { Telescope::night(); /* Other Codes */ } /* Other Codes */ }

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 Telescope Dark Mode