Skip to content

Instantly share code, notes, and snippets.

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

Cristian Mello cristiancmello

🛰️
...
  • Vitória, Brazil
View GitHub Profile
Pessoa:
definicao: ...
Usuario:
Perfil:
ref: ref(Perfil)
tipos:
Aluno: ref(Aluno)
Vendedor: ref(Vendedor)
Perfil:
<?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;
<?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
// 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
use Illuminate\Contracts\Http\Kernel;
use Illuminate\Http\Request;
define('LARAVEL_START', microtime(true));
/*
|--------------------------------------------------------------------------
| Check If Application Is Under Maintenance
<?php
/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <[email protected]>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
<?php
/**
* Laravel - A PHP Framework For Web Artisans
*
* @package Laravel
* @author Taylor Otwell <[email protected]>
*/
$uri = urldecode(
{
"folders": [
{
"path": "."
}
],
"extensions": {
"recommendations": [
"dracula-theme.theme-dracula",
"ritwickdey.liveserver",
<?php
// ...
Route::get('name={name}', function ($name) {
return "{$name} say 'hello'!";
});
Route::get('phpinfo', function (){
phpinfo();
});
<?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.