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
-- phpMyAdmin SQL Dump | |
-- version 4.5.4.1deb2ubuntu2 | |
-- http://www.phpmyadmin.net | |
-- | |
-- Host: localhost | |
-- Generation Time: 30-Out-2016 às 16:40 | |
-- Versão do servidor: 5.7.16-0ubuntu0.16.04.1 | |
-- PHP Version: 7.0.12-1+deb.sury.org~xenial+1 | |
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
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 SyncMedic\Validators; | |
use \Prettus\Validator\Contracts\ValidatorInterface; | |
use \Prettus\Validator\LaravelValidator; | |
class LoginValidator extends LaravelValidator | |
{ | |
//RULES | |
protected $rules = [ | |
ValidatorInterface::RULE_CREATE => [ |
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 | |
// create user | |
$user = new \App\User(); | |
$user->name = 'teste'; | |
$user->email = '[email protected]'; | |
$user->password = bcrypt('teste'); | |
$user->save(); | |
// create voter for user |
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 LaraShop\Factories\Entities; | |
use Illuminate\Database\Eloquent\Model; | |
use LaraShop\Marks\Entities\Mark; | |
class Factory extends Model | |
{ | |
protected $table = 'factories'; |
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
'use strict'; | |
(function ($) { | |
if( !urlCart.length ) { | |
toastr.error('Url não foi definida', 'Erro'); | |
} | |
$('.md-form label').on('click', function () { | |
$(this).addClass('active'); | |
$(this).parent().find('input').focus(); |
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 LaraShop\Moip\Facades; | |
use LaraShop\Factories\Facades\Factory; | |
use LaraShop\User; | |
use Artesaos\Moip\Facades\Moip as Facade; | |
use Moip\Auth\BasicAuth; |
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 Modules\Tracks\Helpers; | |
use PhpOffice\PhpSpreadsheet\IOFactory; | |
class TracksProcess | |
{ | |
public $file; | |
public $exclude; |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |
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 | |
$wk = now()->dayOfWeekIso; | |
$da = now()->day; | |
if ($wk <= 4) { | |
if ($wk == 1) { | |
// toda segunda feira | |
$type = 'weekly'; |