FFilament•Created by Seyed Ali Khoshdel on 7/1/2024 in #❓┊help How to disable filament sidebar for guest user
I could solve it
i added the my code to custom middleware as :
filament()->getCurrentPanel()->sidebarWidth(auth()->check() ? '20rem' : '0rem');