https://help.github.com/articles/generating-a-new-gpg-key/
git config --global commit.gpgsign true
git config --global user.signingkey YYYYYYYYYYYYYYYY
https://help.github.com/articles/generating-a-new-gpg-key/
git config --global commit.gpgsign true
git config --global user.signingkey YYYYYYYYYYYYYYYY
<?php | |
namespace App\Scope; | |
trait IsMultiEmpresaTrait { | |
protected static function bootIsMultiEmpresa() { | |
static::addGlobalScope( new MultiEmpresaScope ); | |
} |
<?php | |
namespace App\Scope; | |
use Illumiante\Database\Query\Builder as QueryBuilder; | |
use Illuminate\Database\Eloquent\Builder; | |
use illuminate\Database\Eloquent\ScopeInterface; | |
class MultiEmpresaScope implements ScopeInterface { |
<?php | |
$header = <<<'EOF' | |
Esse arquivo faz parte de <Empresa/Projeto> | |
(c) Nome Autor <e-mail> | |
Lorem ipsum ... | |
EOF; |
<?php | |
namespace App\Exceptions; | |
use Exception; | |
use Illuminate\Auth\AuthenticationException; | |
use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler; | |
class Handler extends ExceptionHandler | |
{ |
<?php | |
/** | |
* Render an exception into an HTTP response. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Exception $exception | |
* @return \Illuminate\Http\Response | |
*/ | |
public function render($request, Exception $exception) |
<?php | |
/** | |
* Render an exception using Whoops. | |
* | |
* @param \Illuminate\Http\Request $request | |
* @param \Exception $e | |
* @return \Illuminate\Http\Response | |
*/ | |
protected function renderExceptionWithWhoops($request, Exception $e) |