The application I am working on consists of Laravel and Wordpress. I have all the data required in the wordpress database (as additional plugins if need be). I need to be able to connect to the wordpress' wpdb from the laravel controller in order to return the correct view.
however, when I include the wordpress' load.php
(require_once(<wp root>/wp-load.php)
I get the following error when accessing the laravel page:
Cannot redeclare __() (previously declared in /www/laravel/helpers.php:24)
this is because I am trying to use $wpdb to access the DB to get the cotents.
Any ideas on a workaround?