This file contains hidden or 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
| APP_NAME=Laravel | |
| APP_ENV=local | |
| APP_KEY= | |
| APP_DEBUG=true | |
| APP_LOG_LEVEL=debug | |
| APP_URL=http://localhost | |
| DB_CONNECTION=mysql | |
| DB_HOST=127.0.0.1 | |
| DB_PORT=3306 |
This file contains hidden or 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
| <template> | |
| <div id="app"> | |
| <h2>Avaliações - {{ bimestre }}º Bimestre</h2> | |
| <el-tabs type="border-card"> | |
| <el-tab-pane :label="tab.text" v-for="tab in tabs" v-bind:key="tab.id"> | |
| <a class="nav-link" :class="{'active': tab.id === selected}" @click="select(tab)">{{tab.text}}</a> | |
| <!-- <div v-if="tab.text === 'Arte'"> --> | |
| <div> | |
| <el-table | |
| :data="TableArt" |
This file contains hidden or 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
| <template lang="pug> | |
| section(id="main") | |
| a(href="#" @click="ModalShow" :class="{'selector' : sectionModal}") | |
| span | |
| i(class="fa fa-bar-chart") | |
| span Open section modal | |
| <modal v-if="sectionModal"> | |
| h1 hello my friend!! | |
| button(class="button is-info is-large modal-button" @click="closeModal") Close | |
| </modal> |
This file contains hidden or 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
| <!-- | |
| Sistema Tagnos | |
| TDR Informatica Ltda | |
| Todos os direitos reservados © | |
| *********************************************** | |
| Nome do arquivo: listagem.vue | |
| Criado por : Hamilton Gabriel | |
| Data da criacao : 07/04/2018 | |
| Observacao : |
This file contains hidden or 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
| $model['sefaz'] = array(); | |
| $array_sefaz_0 = array(); | |
| $tabelas = $dom->getElementsByTagName('table'); | |
| foreach($tabelas as $node){ | |
| if($node->nodeName=='table' && $node->getAttribute('class')=='toggle box' OR $node->getAttribute('class')=='toggable box'){ | |
| if($node->getAttribute('class')=='toggle box'){ | |
| foreach($node->childNodes as $child){ | |
| $cols = $child->getElementsByTagName('td'); | |
| $array_sefaz_0['numero_item'] = (int)$cols->item(0)->nodeValue; | |
| $array_sefaz_0['nome_produto'] = $cols->item(1)->nodeValue; |
This file contains hidden or 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
| version: '3.1' | |
| services: | |
| apache-achei: | |
| image: ambientum/php:7.1-apache | |
| container_name: apache-achei | |
| volumes: | |
| - ./:/var/www/app | |
| ports: | |
| - 8100:8080 | |
| links: |
This file contains hidden or 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
| public function getAllOrders($status = null) | |
| { | |
| $origin = auth()->user(); | |
| $montages = Montage::where('origin_id', '=', $origin->id); | |
| if ($status) { | |
| $montages->where('status', '=', $status); | |
| } | |
| if (!$montages) { | |
| return response()->json([ | |
| 'status' => 'success', |
This file contains hidden or 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
| <?php | |
| return [ | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Authentication Defaults | |
| |-------------------------------------------------------------------------- | |
| | | |
| | This option controls the default authentication "guard" and password |
This file contains hidden or 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
| # v2 syntax | |
| version: '2' | |
| services: | |
| mysql-HOST: | |
| image: ambientum/mysql:5.7 | |
| container_name: mysql-HOST | |
| volumes: | |
| - ./.docker/mysql:/var/lib/mysql |
This file contains hidden or 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
| public function authenticate() | |
| { | |
| $credentials = request()->only('cpf', 'password'); | |
| try | |
| { | |
| $token = JWTAuth::attempt($credentials); | |
| if(!$token){ | |
| $credentials['email'] = $credentials['cpf']; | |
| unset($credentials['cpf']); |