Posts Learn Components Snippets Categories Tags Tools new 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

106 views

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

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

new

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
)