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
Symfony\Component\Debug\Exception\FatalThrowableError: Call to a member function parameter() on array in /webdir/lumen/vendor/illuminate/http/Request.php:540 | |
Stack trace: | |
#0 /webdir/lumen/routes/web.php(20): Illuminate\Http\Request->route('seller_id') | |
#1 [internal function]: Closure->{closure}('1') | |
#2 /webdir/lumen/vendor/illuminate/container/BoundMethod.php(32): call_user_func_array(Object(Closure), Array) | |
#3 /webdir/lumen/vendor/illuminate/container/Util.php(36): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}() | |
#4 /webdir/lumen/vendor/illuminate/container/BoundMethod.php(78): Illuminate\Container\Util::unwrapIfClosure(Object(Closure)) | |
#5 /webdir/lumen/vendor/illuminate/container/BoundMethod.php(34): Illuminate\Container\BoundMethod::callBoundMethod(Object(Laravel\Lumen\Application), Object(Closure), Object(Closure)) | |
#6 /webdir/lumen/vendor/illuminate/container/Container.php(590): Illuminate\Container\BoundMethod::call(Object(Laravel\Lumen\Application), Object(Closure), Array, NULL) | |
#7 /web |
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 | |
namespace App\ModelRepositories\Criteria; | |
use Prettus\Repository\Contracts\RepositoryInterface; | |
use Prettus\Repository\Criteria\RequestCriteria as BaseRequestCriteria; | |
class RequestCriteria extends BaseRequestCriteria | |
{ |
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
upload() { | |
let data = new FormData(); | |
forEach(this.getSaveData(), function(value, key) { | |
data.append(key, value); | |
}); | |
let method = 'POST', | |
route = this.id ? this.getRoute('patch') : this.getRoute('create'), | |
url = this.getURL(route, this.getRouteParameters()), |
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 | |
namespace App\Validator; | |
use Zend\Validator\CreditCard as ZendCreditCard; | |
class CreditCard extends ZendCreditCard | |
{ | |
const HIPERCARD = 'HiperCard'; |
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
<!-- | |
Para o caso do Pinterest DEVEMOS informar se estamos no escopo de um single, ou archive (caso não usado Wordpress), | |
pois no modo Archive ele deve considerar somente a foto informada no data-thumb, enquanto no single ele pode aceitar | |
qualquer imagem do conteúdo (ver JS) | |
--> | |
<body class="single"> |
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 | |
/** | |
* Função que recebe o nome completo de uma pessoa redunzido as partes do meio - maiores que 3 caracteres- a ponto, ou sem, conforme combinado | |
* | |
* Ex.: JOÃO BELTRANO CICLANO DA SILVA > (com ponto) > JOÃO B. C. DA SILVA | |
* Ex.: JOÃO BELTRANO CICLANO DA SILVA > (sem ponto) > JOÃO B C DA SILVA | |
* Ex.: MARIA ANTONIETA > (sem nomes do meio) > MARIA ANTONIETA) | |
* | |
* @param string $nome Nome completo a ser encurtado. | |
* @param bool $ponto Será usado ponto no encurtamento do nome? Padrão: true |
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 | |
use Facebook\FacebookSession; | |
use Facebook\FacebookRequest; | |
use Facebook\GraphUser; | |
use Facebook\FacebookRequestException; | |
FacebookSession::setDefaultApplication('YOUR_APP_ID','YOUR_APP_SECRET'); | |
// Use one of the helper classes to get a FacebookSession object. | |
// FacebookRedirectLoginHelper |
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
'use strict'; | |
module.exports = function(grunt) { | |
grunt.initConfig({ | |
sprite:{ | |
all: { | |
algorithm: 'binary-tree', | |
src: 'public/r/sprites/*.png', | |
destImg: 'public/r/sprites.794984.png', | |
destCSS: 'public/r/css/sprites.less', |
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 | |
interface Produto | |
{ | |
public function especificacoes(); | |
} | |
class Livro implements Produto | |
{ | |
public function especificacoes() { | |
} |
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 | |
interface Atendimento | |
{ | |
const SUPORTE = 1; | |
const FINANCEIRO = 2; | |
const ADMINISTRATIVO = 3; | |
public function encerrar(); | |
} |
NewerOlder