app/Http/Resources/Expedientes_vendedoresResource.php
/**
     * Transform the resource into an array.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return array|\Illuminate\Contracts\Support\Arrayable|\JsonSerializable
     */
Transform the resource into an array.
Transform the resource into an array .
public function toArray($request)
    {
        return [
            'id' => $this->id
            , 'rfc' => $this->rfc
            , 'curp' => $this->curp
            ,'clave_elector' => $this->clave_elector
        ];
    }
public function toArray ( $ request ) { return [ 'id' => $ this -> id , 'rfc' => $ this -> rfc , 'curp' => $ this -> curp , 'clave_elector' => $ this -> clave_elector ] ; }
Transform the resource into an array.
Transform the resource into an array .