CodeWithDennis / filament-theme-inspector

Easily see the fi- class of any element on the page by hovering over it. A tooltip displays the class name, and you can copy it with a click!
MIT License
26 stars 3 forks source link

Ability to disable the inspector #1

Closed CodeWithDennis closed 2 days ago

CodeWithDennis commented 2 days ago

Disable the inspector in certain situations, such as when the app is in production mode or when debug mode is set to false.

CodeWithDennis commented 2 days ago
FilamentThemeInspectorPlugin::make()
    ->disabled(fn () => ! app()->hasDebugModeEnabled())