Skip to content

Instantly share code, notes, and snippets.

View cristiancmello's full-sized avatar
🛰️
...

Cristian Mello cristiancmello

🛰️
...
  • Vitória, Brazil
View GitHub Profile
<?php
// Check if the application is in maintenance mode...
if (! file_exists($down = __DIR__.'/down')) {
return;
}
// Decode the "down" file's JSON...
$data = json_decode(file_get_contents($down), true);
<?php
/*
|--------------------------------------------------------------------------
| Create The Application
|--------------------------------------------------------------------------
|
| The first thing we will do is create a new Laravel application instance
| which serves as the "glue" for all the components of Laravel, and is
| the IoC container for the system binding all of the various parts.
<?php
namespace Illuminate\Foundation;
use Closure;
use Illuminate\Container\Container;
use Illuminate\Contracts\Foundation\Application as ApplicationContract;
use Illuminate\Contracts\Foundation\CachesConfiguration;
use Illuminate\Contracts\Foundation\CachesRoutes;
use Illuminate\Contracts\Http\Kernel as HttpKernelContract;
Pessoa:
definicao: ...
Usuario:
Perfil:
ref: ref(Perfil)
tipos:
Aluno: ref(Aluno)
Vendedor: ref(Vendedor)
Perfil: