Error when migrating to production - Class 'Anomaly\Streams\Platform\Model\Users\UsersRolesEntryModel' not found
Created 7 years ago by huglester

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

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

ryanthompson  —  7 years ago Best Answer

Excellent resource!

ankitasoman  —  7 years ago

I am still getting this error. Please give me solution.

emergingdzns  —  7 years ago

I'm having the same error. No stacktrace. Artisan commands file as long as the installed in the .env is set to true. If set to false I can run artisan commands, which I've done (clear-compiled, cache:clear, config:clear, twig:clean, etc). No luck. I'm stumped.