Laravel conflicting

对着背影说爱祢 提交于 2019-12-13 21:28:51

问题


I am integrating PHPBB with my Laravel installation and I am having errors because variables are conflicting.

Eg: This page: http://clashdata.tk/search/livesearch?clanname=clans&location=&trophies=0&minmembers=1&maxmembers=50&clanlevel=0

PHPBB is using the Laravel $request var instead of the phpBB one.

The line of code is:

$script_name = $request->escape($symfony_request->getScriptName(), true);

What can I do to fix this? Is there a way I can make Laravel have nothing to do with the /forum directory and totally ignore it with everything?


回答1:


phpBB uses composer, same as laravel.

If you use the same root folder for both installations, composer will try to autoload classes from both installations, hence the errors.

Please install phpBB and laravel in their own separate root folders.

Example:

/html/phpBB/

/html/laravel/



来源:https://stackoverflow.com/questions/33905046/laravel-conflicting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!