This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> | |
<soap:Body> | |
<ConsultarDocumentoResponse xmlns="http://nddigital.com.br/eForms/webservices"> | |
<ConsultarDocumentoResult> | |
<eformsConsultarColdChaveAcessoRetorno xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://www.nddigital.com.br/connector"> | |
<versao>1.00</versao> | |
<chaveacesso>31200103654243000131550020000814831004526929</chaveacesso> | |
<mensagemconsulta> | |
<codigo>D000</codigo> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"number": "00191919", | |
"serie": 1, | |
"key": 19284928392839283928392839283928392839283928, | |
"danfe_link": "eeee", | |
"danfe_xml": "eeeeee", | |
"date": "2019-08-05 11:22:34" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"pedidos": [ | |
{ | |
"pedido": { | |
"codigo": "275497", | |
"data": "2019-07-01 08:35:58", | |
"canal_venda": "Submarino", | |
"subtotal": 163.71, | |
"desconto": "0.00", | |
"total": 173.71, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Pedido": { | |
"id": "477", | |
"codigo": "275497", | |
"cliente_id": "4", | |
"confirmar_pagamento_id": null, | |
"canal_venda": "SUBMARINO", | |
"observacoes": null, | |
"status_pedido": "Expedição", | |
"situacao_pedido_id": "40", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Migration | |
```php | |
<?php | |
use Illuminate\Support\Facades\Schema; | |
use Illuminate\Database\Schema\Blueprint; | |
use Illuminate\Database\Migrations\Migration; | |
class CreateTimezonesTable extends Migration |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function _geraAlias($palavra){ | |
//Transforma uma palavra em uma alias, usada em URL's amigáveis | |
$palavra = strtolower($palavra); | |
#Removendo os caracters especiais | |
$palavra = str_replace(".", "", $palavra); | |
$palavra = str_replace("/", "", $palavra); | |
$palavra = str_replace("\\", "", $palavra); | |
$palavra = str_replace(":", "", $palavra); | |
$palavra = str_replace("(", "", $palavra); | |
$palavra = str_replace(")", "", $palavra); |