laravel-console-dusk icon indicating copy to clipboard operation
laravel-console-dusk copied to clipboard

Allow launching browsers without an Artisan command (for use in queues, etc.)

Open tibbsa opened this issue 1 year ago • 1 comments

Over the years there have been a number of discussions about using Laravel-Console-Dusk in non-Artisan contexts, e.g. in a queue. I had this need recently and as far as I can tell, the only thing that really prevents people from doing this is the reliance on nunomaduro/laravel-console-task for the pretty-printing of the progress messages.

This PR makes the provision of a Command object optional, and allows Laravel-Console-Dusk to boot even in non-console contexts (by way of a configuration option). In non-Artisan contexts, it will not use laravel-console-task for reporting.

Likely resolves #4 and #17. It seems to be working for our purposes, but I am open to any suggestions on how we might differently architect this.

tibbsa avatar Jan 21 '24 23:01 tibbsa

hey, @nunomaduro i think this can be merged right ?

eznix86 avatar Sep 08 '24 09:09 eznix86