themosis / framework

The Themosis framework core.
https://framework.themosis.com/
GNU General Public License v2.0
670 stars 121 forks source link

Php artisan don't working after upgrade #885

Closed Bartiff closed 1 year ago

Bartiff commented 1 year ago

Description

I'm trying to upgrade a project from themosis 2 to 3 by following the instructions here: https://framework.themosis.com/docs/3.0/upgrade#upgrade-from-20-to-30

The php artisan command does not seem to work I get this error:

> Themosis\Core\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi
PHP Fatal error:  Uncaught ReflectionException: Class "env" does not exist in /pathtofolder/vendor/illuminate/container/Container.php:877

Steps to reproduce

Follow the instructions in the documentation then do composer update or php artisan directly.

Bartiff commented 1 year ago

Ok I succeeded. You must check changes in files of the config folder and don't forget to add the new files BroadcastServiceProvider.php and EventServiceProvider.php to upgrade your Themosis.

jlambe commented 1 year ago

Thanks for your feedback, will try to update the notes on the upgrade guide.

danieldunderfelt commented 11 months ago

I have followed the upgrade instructions, still getting the error after composer install:

Fatal error: Uncaught ReflectionException: Class "env" does not exist

Bartiff commented 11 months ago

Try to compare files and directories with fresh install of Themosis 3.1 in particular in config files.

danieldunderfelt commented 11 months ago

Okay whew, I got it working! I thought I had checked everything but a few things were left over.