DHL Modul v0.5 Shipping Label ok

This commit is contained in:
Kevin Adametz 2025-08-22 18:18:26 +02:00
parent 480fdc65ed
commit 8fdaa0ba1d
122 changed files with 17938 additions and 2239 deletions

7
app/Providers/AppServiceProvider.php Executable file → Normal file
View file

@ -16,7 +16,7 @@ class AppServiceProvider extends ServiceProvider
public function boot()
{
Schema::defaultStringLength(191);
if ($this->app->environment('production')) {
URL::forceScheme('https');
}
@ -25,7 +25,7 @@ class AppServiceProvider extends ServiceProvider
\View::composer('*', function ($view) {
try {
$context = app(\App\Domain\DomainContext::class);
// Für die Main-Domain: user_shop immer auf null setzen
if ($context->type === 'main') {
$view->with('user_shop', null);
@ -49,9 +49,8 @@ class AppServiceProvider extends ServiceProvider
public function register()
{
if ($this->app->environment() !== 'production') {
if ($this->app->environment() !== 'production' && class_exists(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class)) {
$this->app->register(\Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class);
}
// ...
}
}

0
app/Providers/AuthServiceProvider.php Executable file → Normal file
View file

0
app/Providers/BroadcastServiceProvider.php Executable file → Normal file
View file

View file

@ -44,10 +44,12 @@ class DomainServiceProvider extends ServiceProvider
// Analysiere den Host der aktuellen Anfrage
$domainInfo = $domainService->parseDomain($request->getHost());
\Log::debug('DomainServiceProvider: domainInfo', [
'domainInfo' => $domainInfo,
'host' => $request->getHost()
]);
if (config('app.debug')) {
\Log::debug('DomainServiceProvider: domainInfo', [
'domainInfo' => $domainInfo,
'host' => $request->getHost()
]);
}
$userShop = null;
// Wenn es sich um eine User-Shop-Domain handelt, versuche das Shop-Objekt zu finden.

0
app/Providers/EventServiceProvider.php Executable file → Normal file
View file

0
app/Providers/RouteServiceProvider.php Executable file → Normal file
View file

0
app/Providers/YardServiceProvider.php Executable file → Normal file
View file