Have you seen our video tutorials? Check 'em out!

Error when migrating to production - Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found

huglester - 1 month ago

The is a know problem after moving to production with errors similar to:

[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found

Here is a short code snippet how to fix this:

#!/usr/bin/env bash

sed -i 's/INSTALLED=true/INSTALLED=false/g' .env

php artisan migrate --force --streams
php artisan migrate --force
php artisan migrate --force --all-addons
php artisan streams:compile

sed -i 's/INSTALLED=false/INSTALLED=true/g' .env

exit 0; 

Hope it helps, snippet provided by @stijnt

Answer

ryanthompson - 1 month ago

Excellent resource!

ryanthompson - 1 month ago

Excellent resource!