rap2hpoutre/laravel-log-viewer

I want to disable it from production

MoatazAbdAlmageed opened this issue · 1 comments

I tried to add this in app.php
env('APP_ENV') !== 'production' ? Rap2hpoutre\LaravelLogViewer\LaravelLogViewerServiceProvider::class : null, but I got
Class name must be a valid object or a string

I think I can replace null with existing service provider ... this fixed my issue. but is there a better solution or configuration for disable it from production ?