Laravel conflicting

2019-09-07 10:48发布

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条回答
Animai°情兽
2楼-- · 2019-09-07 11:43

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/

查看更多
登录 后发表回答