The main advantage of using WordPress Pete for the integration of WordPress and Laravel is the clean way this is done through the file located at the route app/Http/Middleware/WPAuthMiddleware.php at the Laravel installation folder, This way you don’t have to modify the core of WordPress or Laravel’s neither.
Keep in mind that both WordPress and Laravel will share the same database and the table wp_users is used for both login systems but the logging process will be done from WordPress for convenience.
1. Install WordPress Pete in your development environment or go to the live demo at http://22.214.171.124/
Now go to your preferred code editor and start having fun with the best of both worlds.
For mac, browse to: /Users/myusername/Sites/dashboard/app/resources/views/wordpress_code_example.php and for windows: \WordPressPete\Apache24\htdocs\dashboard\app\resources\views\wordpress_code_example.php and checkout the example code.