I serve my Laravel app on the local network with the following artisan command "sudo php artisan serve --host 192.168.1.102 --port 8080".
The app is accessible from the local network, however, when the app tries to handle a DB query it throws the following exception:
could not find the driver (SQL: select * from
tests
)".
When I serve my app on localhost with a plain "php artisan serve" command DB queries work just fine, though.
What could cause the issue and how do I solve it? Thanks!