문제

I'm doing

$mymodel = MyModel::where( 'url', $domain )->first();

and this was returning a MyModel object and now, somehow, it is returning a stdClass.

What's happening? Is it some update on the laravel? Have I changed something?

Thanks

도움이 되었습니까?

해결책

Found the problem. I did updated the laravel today and it was updating to a dev version. By being dev it could have bugs and it did. I just rollback to version "4.1.22" and it's working fine.

다른 팁

I ran into the exact same issue yesterday. But just updated again and it seems to have been fixed.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top