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:
add locale parameter to all of your filament panel
how to use a resource with multiple models
make all Field or any components translatable
This time-saving starter kit provides a Laravel project with FilamentPHP already installed and configured, so you can dive straight into building without any of the initial setup headaches.
get translatable attribute in a relationships