Collapse Sidebar by Default in Mobile
- Published: 20 Jun 2024 Updated: 07 Jul 2024
Hi for those maybe who need this one, so, I'm facing this issue when I'm using tour plugin by jibay-mcs-tour.
when it comes to mobile, the sidebar by default opens so that makes the tour doesn't work as well, here's what I do to solve that problem.
1. Create a new custom JS, you can name it whatever you want, I will name it custom.js
2. Register the javascript via AppServiceProvider.php inside the boot function
3. Save and run `artisan filament:asset` to push the script that we made earlier
That's all guys, if you find a better way, share it with us also ✌️
Thank you.
Related Tricks:
Let Users to Select All Options with a Simple Hint Action
add any link or actions to the topbar
add locale parameter to all of your filament panel
let users select a color for the panel