app/Http/Resources/Datos_bancariosResource.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
            , 'fecha_expiracion' => $this->fecha_expiracion
            , 'ccv' => $this->ccv
            , 'banco' => $this->banco
            ,'numero' => $this->numero
            ,'usuario_id' => $this->usuario_id
        ];
    }
public function toArray ( $ request ) { return [ 'id' => $ this -> id , 'fecha_expiracion' => $ this -> fecha_expiracion , 'ccv' => $ this -> ccv , 'banco' => $ this -> banco , 'numero' => $ this -> numero , 'usuario_id' => $ this -> usuario_id ] ; }
Transform the resource into an array.
Transform the resource into an array .