This actually seems to be an issue with the version of Laravel. My local dev server was running 4.1.18 and the production 4.1.22. v4.1.22 is causing the error, but when I downgrade to 4.1.18 the error goes away. Is this a known issue in 4.1.22?
use ->get() method at last. $email = Email::with('recipient')->where('token', '=', $data['token'])->firstOrFail()->get();
or
use ->get() method at last. $email = Email::with('recipient')->where('token', '=', $data['token'])->first()->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community