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:
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.
Jump to solution
2 Replies
Solution
awcodes
awcodes5mo ago
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.
jimarick
jimarick4mo ago
ok thanks I'll give it a shot.