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\Rules; | |
use Illuminate\Contracts\Validation\Rule; | |
class Uppercase implements Rule | |
{ | |
/** | |
* Determine if the validation rule passes. |
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 | |
/* | |
* Faz o forecah em SP, passa o '2nd_half_result' para $hotfixArr e depois faz um foreach em $hotfixArr | |
*/ | |
foreach($rs->half->sp as $hotfixKey => $hotfixArr) { | |
if (str_contains($hotfixKey, '2nd_half_result')) { // hotfix sintax | |
foreach($hotfixArr as $nd_half_result) { | |
if($nd_half_result->opp == 1){ | |
$od = "Casa (2T)"; |
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 Illuminate\Http\Request; | |
use App\Colaborador; | |
class HomeController 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 | |
$wk = now()->dayOfWeekIso; | |
$da = now()->day; | |
if ($wk <= 4) { | |
if ($wk == 1) { | |
// toda segunda feira | |
$type = 'weekly'; |
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 | |
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
<?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
'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\Factories\Entities; | |
use Illuminate\Database\Eloquent\Model; | |
use LaraShop\Marks\Entities\Mark; | |
class Factory extends Model | |
{ | |
protected $table = 'factories'; |