Browse Source

Fully qualify eloquent class.

Taylor Otwell 12 years ago
parent
commit
caf0bb7cb2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/helpers.php

+ 1 - 1
laravel/helpers.php

@@ -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());
 	}