Fully qualify eloquent class.

This commit is contained in:
Taylor Otwell 2012-05-03 20:22:03 -05:00
parent 50dc9f8663
commit caf0bb7cb2
1 changed files with 1 additions and 1 deletions

View File

@ -253,7 +253,7 @@ function array_pluck($array, $key)
*/
function eloquent_to_json($models)
{
if ($models instanceof Eloquent)
if ($models instanceof Laravel\Database\Eloquent\Model)
{
return json_encode($models->to_array());
}