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 Domain\Shared; | |
trait MagicGetterSetter | |
{ | |
public function __set($name, $value) | |
{ | |
if (property_exists($this, $value)) { | |
$name = $this->toCamelCase($name); |
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\Request; | |
use Domain\Shared\MagicGetterSetter; | |
use Illuminate\Translation\ArrayLoader; | |
use Illuminate\Translation\Translator; | |
use Illuminate\Validation\ValidationException; | |
use Illuminate\Validation\Factory as ValidatorFactory; | |
use Symfony\Component\HttpFoundation\FileBag; |
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
fonte padrão: Helvetica, sans-serif | |
cor de fundo: #e9ebee | |
cord dos links: #365899 | |
borda do card: #e5e6e9 #dfe0e4 #d0d1d5 | |
cor do separador: #e5e5e5, opacidade 48% |
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 | |
function convertToObject($array) | |
{ | |
reset($array); | |
if ($isNumericKey = is_numeric(key($array))) { | |
$object = []; | |
} else { |
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
# Upgrade your nginx server {} config: | |
fastcgi_keep_conn on; | |
fastcgi_buffering off; | |
proxy_buffering off; | |
gzip off; |