Support the ongoing development of Laravel.io →
Database Eloquent
Last updated 2 years ago.
0

Same here. All of a sudden none of the scope methods in my models are working. Also, the first() method does not seem to be working either. Here's one of the exceptions I'm seeing below:

[2014-02-28 10:37:12] production.ERROR: exception 'BadMethodCallException' with message 'Call to undefined method Illuminate\Database\Query\Builder::type()' in ///***/vendor/laravel/framework/src/Illuminate/Database/Query/Builder.php:189

Edit: I use Eloquent for all models.

Last updated 2 years ago.
0

I use Eloquent too

Last updated 2 years ago.
0

thanks tampadesign. If i replace "return call_user_func_array" by "call_user_func_array", it works!

Can i let it like that for the moment?

Last updated 2 years ago.
0

What I did was set my composer to use the last stable release (v4.1.22) and ran a composer update to revert back to that version. Everything works again for me after it finished.

So, pretty much just stick to the stable releases to avoid problems like this. :)

Last updated 2 years ago.
0

Where do you find the name of the last laravel stable release?

Last updated 2 years ago.
0

https://github.com/laravel/framework

Near the top, there is a numbered releases link (currently '37 Releases'). Click that and the last stable release should be at the top of the next page. To save you some time, here's the direct link: https://github.com/laravel/framework/releases

Last updated 2 years ago.
0

Thanks !

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

soclosed soclosed Joined 5 Feb 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.