Fully qualify eloquent class.
This commit is contained in:
parent
50dc9f8663
commit
caf0bb7cb2
|
@ -253,7 +253,7 @@ function array_pluck($array, $key)
|
||||||
*/
|
*/
|
||||||
function eloquent_to_json($models)
|
function eloquent_to_json($models)
|
||||||
{
|
{
|
||||||
if ($models instanceof Eloquent)
|
if ($models instanceof Laravel\Database\Eloquent\Model)
|
||||||
{
|
{
|
||||||
return json_encode($models->to_array());
|
return json_encode($models->to_array());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue