I have read that crawling pages with other http crawlers doesn't work well because they do not allow all sort of javascript. So firing up a browser and actually running it via the browser seems like the best option for a more advanced web page.
I read, that it seems to be working to run on servers without GUI even here: Running Laravel Dusk on Headless (no GUI) machine
Now dusk is used in laravel for unit tests. But I want to use it in proper code and routes.
How can I include and run dusk from a normal laravel route?
btw: why? our app is making use of a third party app that does not offer an API. Simple things as "create new user" have to be done manually and the users of our platform have to wait until we manually create a login for them on the other platform. This is bad UX. So we want to automate it.