The Dashboard Builder generates an external PHP code and class, which can be used on the Laravel framework as well. For more details, take a look at this documentation on how to use external PHP class on the Laravel framework at https://laraveldaily.com/how-to-use-external-classes-and-php-files-in-laravel-controller here
In order to connect PostgreSQL DB, you need PostgreSQL driver for PDO to be installed on your server.