Home / Snippets / How to Enable Laravel Telescope Dark Mode
How to Enable Laravel Telescope Dark Mode cover

How to Enable Laravel Telescope Dark Mode

2K

3 years ago

0 comments

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 */ }
notion avatar

Alaz

Week-end developer currently experimenting with web, mobile, and all things programming.

Topics:

Frontend

Resource

Average

Average

Support Us

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

Welcome to PostSrc V3

PostSrc Dark Logo

You have to login to favorite this