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',
                    ''
                );
    }



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire