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

2. Create a new WordPress website with WordPress Pete. To do this, go to your WordPressPete installation at http://pete.test or and click on “Create New WordPress”. Set the project’s name and URL. In this example we are using wplaravel.test.
Complete the WordPress installation.
3.Go to Plugins in your WordPress admin panel to activate the “Laravel Integration plugin by WordPressPete”. A copy of this plugin is installed by default when you create a new WordPress with WordPress Pete. Then go to Settings -> Laravel Integration and tick the checkbox “Allow cookies to go across all subdomains” and click on “Update Options”.
Important: Log out from WordPress and log back in so that the plugin can allow cookies to go across all subdomains
4. Go to your WordPress Pete installation and create a WordPress + Laravel Integration. For this example we are going to name the project “dashboard”.
You should see this page, Click on the link for your WordPress + Laravel Integration.

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.

For more information about how the integration process works read this: