composer require int/lumen-base
from
// $app->withFacades();
to
$app->withFacades();
from
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
App\Exceptions\Handler::clas
);
to
$app->singleton(
Illuminate\Contracts\Debug\ExceptionHandler::class,
\Int\Lumen\Core\Exceptions\Handler::class
);
$app->middleware([
\Int\Lumen\Core\Http\Middleware\AcceptsJsonMiddleware::class
]);
$app->register(\Int\Lumen\Core\Providers\TransformerServiceProvider::class);
$app->configureMonologUsing(function ($monolog) {
$monolog->pushHandler(new \Monolog\Handler\StreamHandler(storage_path() . '/logs/api.log'));
$monolog->pushProcessor(new \Monolog\Processor\WebProcessor);
return $monolog;
});