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
<?php | |
$a = '02/02/2018'; | |
$b = '10/07/2018'; | |
$atual = $a; | |
$dia = null; | |
while($atual != $b){ | |
$dia = DateTime::createFromFormat('d/m/Y', $atual)->format('D'); | |
if( $dia == 'Thu' ){ |
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
<?php | |
namespace App\Console; | |
use Illuminate\Console\Scheduling\Schedule; | |
use Illuminate\Foundation\Console\Kernel as ConsoleKernel; | |
use App\Jobs\ManageEvents; | |
class Kernel extends ConsoleKernel |
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
<?php | |
namespace App\Http\Controllers; | |
use Carbon\Carbon; | |
use Illuminate\Http\Request; | |
use App\Jobs\ManageEvents; | |
class TestController extends Controller | |
{ |
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
<?php | |
namespace App\Jobs; | |
use Illuminate\Bus\Queueable; | |
use Illuminate\Queue\SerializesModels; | |
use Illuminate\Queue\InteractsWithQueue; | |
use Illuminate\Contracts\Queue\ShouldQueue; | |
use Illuminate\Foundation\Bus\Dispatchable; |
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
Avaliacao::select(" | |
UNIX_TIMESTAMP( CONVERT_TZ( time, '+00:00', @@global.time_zone) ) as time, | |
idrest, | |
idcliente, | |
comentario, | |
alias, | |
entrega, | |
comida, | |
embalagem, | |
custobeneficio, |
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
<?php | |
/* | |
Injeção de dependência em namespaces Diferentes | |
*/ | |
// Request Class | |
namespace Illuminate\Http; | |
class Request { |
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
[PHP][Você Sabia?] | |
Eae pipou?! | |
Todos os dias vemos postagens sobre o uso do mysql_connect(), parem de usar esse lixo, TUTORIAL DEFINITIVO DO USO DO PDO de forma simples :D. | |
|============================ | |
| Instanciado um Objeto do PDO | |
| obs: importante vamos utilizar essa mesma instância | |
| para todas as querys | |
|============================ | |
| // O pdo recebe em seu construtor 3 parametros | |
| // uma string que informa diver,host e dbname |
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
<template> | |
<div id="inicio"> | |
<!-- LINHA 1 --> | |
<b-row> | |
<b-col col lg="12" class="demo"> | |
<googlemaps-map ref="map" class="map" :center.sync="map.center" :zoom.sync="map.zoom"> | |
<!-- User Position --> | |
<googlemaps-user-position @update:position="setUserPosition"/> | |
<!-- Estabelecimento Marker --> |
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
<?php | |
// Model | |
namespace Model; | |
abstract class Connection { | |
protected $con; | |
function __construct () { | |
$this->conn = "Database Conn"; // Aqui fazer a conexão com o banco | |
} |
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
https://github.com/mike42/escpos-php | |
https://github.com/RamyTalal/Label-Printer? |
OlderNewer