Commit caf0bb7c authored by Taylor Otwell's avatar Taylor Otwell

Fully qualify eloquent class.

parent 50dc9f86
......@@ -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());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment