Slideover or Modal
Is there a way to enable a modal form to show as a modal on desktop and a slide over on mobile? Can I pass a closure to the ->slideover() parameter, and if so what would I pass it?
Solution:Jump to solution
It can be done. SlideOver accepts a closure. But you’ll need to find a good package to determine the device size on the backend. jenssegers/agent is one I’ve used before.
2 Replies