Reputation: 4750
I have just updated an Laravel project from Laravel version 5.4 to 5.5. After upgrading I am getting error where the error message is:
Line: 2445
File: /home/vagrant/Projects/Media365/harlib-core/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php
Call to undefined method Illuminate\Database\Query\Builder::newQueryForRestoration()
I have no clue why I am getting this error. Even there is nothing but only comment at line 244Illuminate/Database/Query/Builder.php
file.
Upvotes: 1
Views: 193
Reputation: 588
If this error is caused from a queued job and you're using supervisor to run the queue worker then I was having the same problem. I was running the queue worker on supervisor before I upgraded to 5.5 from 5.4. Supervisor keeps the old version and you need to restart it:
supervisorctl restart <program_name>
Upvotes: 3