You need to replace "where" with "whereIn". http://laravel.com/docs/5.0/queries...
Did you follow this? http://laravel.com/docs/5.0/eloquent#querying-relations
Don't forget .env file and vendor folders.
You are on right place... 50k record are "piece of cake" for any Framework... i have APP w...
I also get same error... composer update don;t fix it.. any new idea?
The Laravel portal for problem solving, knowledge sharing and community building.