list airports api
This commit is contained in:
@@ -25,7 +25,7 @@ $app = new Laravel\Lumen\Application(
|
||||
|
||||
// $app->withFacades();
|
||||
|
||||
// $app->withEloquent();
|
||||
$app->withEloquent();
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -81,6 +81,7 @@ $app->singleton(
|
||||
// $app->register(App\Providers\AppServiceProvider::class);
|
||||
// $app->register(App\Providers\AuthServiceProvider::class);
|
||||
// $app->register(App\Providers\EventServiceProvider::class);
|
||||
$app->register(Illuminate\Redis\RedisServiceProvider::class);
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
@@ -97,4 +98,17 @@ $app->group(['namespace' => 'App\Http\Controllers'], function ($app) {
|
||||
require __DIR__.'/../routes/web.php';
|
||||
});
|
||||
|
||||
// configure Monolog
|
||||
$app->configureMonologUsing(function($monolog) {
|
||||
/** @var \Monolog\Logger $monolog */
|
||||
|
||||
$minimumLevel = $monolog::NOTICE;
|
||||
if (env('APP_DEBUG', false)) {
|
||||
$minimumLevel = $monolog::DEBUG;
|
||||
}
|
||||
|
||||
$monolog->pushHandler(new Monolog\Handler\ErrorLogHandler());
|
||||
return $monolog;
|
||||
});
|
||||
|
||||
return $app;
|
||||
|
||||
Reference in New Issue
Block a user