Access specific Laravel 5 route from a directory located elsewhere
When you have multiple applications that you want to access it from single domain, the best implementation is to boot different server for each application. The you can set up proxy from the main application to other applications.
You can boot apache2 server for your laravel application with setup like this
<VirtualHost 0.0.0.0:8080> DocumentRoot "path-to-laravel-app" <Directory "path-to-laravel-app"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Require all granted Allow from all </Directory></VirtualHost>
Then set up proxy in your wordpress application .htaccess
file like this
ProxyPass "/play" "http://locahost:8080/play"ProxyPassReverse "/play" "http://locahost:8080/play"