-
since i use yii2 when i try to start bot i have an issue with redeclaring env() function/ PHP Fatal error: Cannot redeclare env() (previously declared in /app/vendor/illuminate/support/helpers.php:136) in /app/vendor/illuminate/support/helpers.php:136 /app/common/helpers.php on line 48
} If i comment the function here /app/vendor/illuminate/support/helpers.php:136 |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Sadly, Laravel integrated into the bot core pretty hard. TBH, I was planing to make separate packages for Laravel and core, so there were no dependency conflicts, but there was no personal need for me to do so. You may try to somehow define env function before loading vendor packages. This is hacky solution, but only that can work |
Beta Was this translation helpful? Give feedback.
-
There should be no problems with using Yii framework right now as Laravel dependencies was migrated to |
Beta Was this translation helpful? Give feedback.
There should be no problems with using Yii framework right now as Laravel dependencies was migrated to
westacks/telebot-laravel
. Just use version^3.x
of the package