Have you turned on debugging in your app config file?
Yes sir:
ErrorException
call_user_func_array() expects parameter 1 to be a valid callback, class 'Illuminate\Database\MySqlConnection' does not have a method 'query'
Well, after a bit more digging around, it seems that DB::query does not really work so well in Laravel 4 (perhaps deprecated?)
But by using: DB::select("SELECT * from..... )
That does seem to work. So it seems that this is not so much a connection issue, but rather a using the proper command issue.
Hopefully this helps anyone trying to learn Laravel 4 using, apparently, a Laravel 3 tutorial...
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community