Explore/ismail (#3)
Build Docker Image / build-backend (push) Successful in 1m11s

Co-authored-by: ISMAIL MASSERAN <topaz@Mac.dlinkrouter.local>
Reviewed-on: #3
This commit was merged in pull request #3.
This commit is contained in:
2026-08-26 16:19:29 +08:00
parent 51860cea37
commit be93821fad
28 changed files with 3565 additions and 81 deletions
+28
View File
@@ -23,6 +23,33 @@ $app = new Laravel\Lumen\Application(
dirname(__DIR__)
);
/*
| Laravel's storage_path() helper resolves app('path.storage'). Lumen does not
| register that binding by default; config files that call storage_path() at
| load time (e.g. config/logging.php) would fail without this.
*/
$app->instance('path.storage', $app->storagePath());
/*
| Laravel's Foundation helpers are loaded before Lumen's and win for names like
| response() and url(). Those helpers resolve Illuminate\Contracts\* from the
| container; Lumen only registers the "url" service, not the contracts. Map the
| contracts to Lumen's implementations so helpers work across the app.
*/
$app->singleton(
\Illuminate\Contracts\Routing\ResponseFactory::class,
function () {
return new \Laravel\Lumen\Http\ResponseFactory();
}
);
$app->singleton(
\Illuminate\Contracts\Routing\UrlGenerator::class,
function ($app) {
return $app->make('url');
}
);
$app->withFacades();
$app->withEloquent();
@@ -60,6 +87,7 @@ $app->singleton(
*/
$app->configure('app');
$app->configure('logging');
$app->configure('tinker');
$app->configure('tennant_database');
$app->configure('report');