vendredi 31 mars 2017

Exception in Collection.php line 1527: Property [id] does not exist on this collection instance

i m getting error Exception in Collection.php line 1527: Property [id] does not exist on this collection instance.

public function index()
    {
        $response=array();
        $data = MyList::all();
        $response['id']=$data->id;
        $response['name']=$data->name;
        $response['password']=$data->password;
        $response['city']=$data->city;   
        return ResponseClass::prepareResponse(
                    $response,
                    'success',
                    ''
                );
    }



from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/2mUJSnD
via IFTTT

Aucun commentaire:

Enregistrer un commentaire