commit 08-2025
This commit is contained in:
parent
9ae662f63e
commit
480fdc65ed
404 changed files with 65310 additions and 2600431 deletions
|
|
@ -59,19 +59,21 @@ return [
|
|||
'protocol' => env('APP_PROTOCOL', 'https://'),
|
||||
'pre_url_main' => env('APP_URL_MAIN', ''),
|
||||
'pre_url_crm' => env('APP_URL_CRM', 'my.'),
|
||||
'pre_url_portal' => env('APP_URL_PORTAL', 'in.'),
|
||||
|
||||
'checkout_url' => env('APP_URL_CHECKOUT', 'checkout.'),
|
||||
'contact_mail' => env('APP_CONTACT_MAIL', 'kontakt@mivita.care'),
|
||||
'checkout_mail' => env('APP_CHECKOUT_MAIL', 'no-reply@mivita.care'),
|
||||
'checkout_test_mail' => env('APP_CHECKOUT_TEST_MAIL', 'devtest@mivita.care'),
|
||||
'info_mail' => env('APP_INFO_MAIL', 'no-reply@mivita.care'),
|
||||
'priority_mail' => env('APP_PROORITY_MAIL', 'priority@mivita.care'),
|
||||
'priority_mail' => env('APP_PROORITY_MAIL', 'priority@mivita.care'),
|
||||
'default_mail' => env('APP_DEFAULT_MAIL', 'info@mivita.care'),
|
||||
'info_test_mail' => env('APP_INFO_TEST_MAIL', 'devtest@mivita.care'),
|
||||
'exception_mail' => env('EXCEPTION_MAIL', 'exception@adametz.media'),
|
||||
|
||||
'ipinfo' => env('APP_IPINFO', false),
|
||||
|
||||
|
||||
|
||||
'main_tax' => env('APP_MAIN_TAX', 1.19),
|
||||
'main_tax_rate' => env('APP_MAIN_TAX_RATE', 19),
|
||||
'shipping_tax' => env('APP_SHIPPING_TAX', 19),
|
||||
|
|
@ -176,8 +178,8 @@ return [
|
|||
Illuminate\Translation\TranslationServiceProvider::class,
|
||||
Illuminate\Validation\ValidationServiceProvider::class,
|
||||
Illuminate\View\ViewServiceProvider::class,
|
||||
Reliese\Coders\CodersServiceProvider::class,
|
||||
Intervention\Image\ImageServiceProvider::class,
|
||||
//Reliese\Coders\CodersServiceProvider::class,
|
||||
//Intervention\Image\ImageServiceProvider::class,
|
||||
/*
|
||||
* Package Service Providers...
|
||||
*/
|
||||
|
|
@ -191,15 +193,13 @@ return [
|
|||
App\Providers\AuthServiceProvider::class,
|
||||
// App\Providers\BroadcastServiceProvider::class,
|
||||
App\Providers\EventServiceProvider::class,
|
||||
App\Providers\DomainServiceProvider::class,
|
||||
App\Providers\RouteServiceProvider::class,
|
||||
Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider::class,
|
||||
Jenssegers\Date\DateServiceProvider::class,
|
||||
Collective\Html\HtmlServiceProvider::class,
|
||||
Maatwebsite\Excel\ExcelServiceProvider::class,
|
||||
Yajra\DataTables\DataTablesServiceProvider::class,
|
||||
App\Providers\YardServiceProvider::class
|
||||
|
||||
|
||||
App\Providers\YardServiceProvider::class,
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
@ -249,9 +249,7 @@ return [
|
|||
'Validator' => Illuminate\Support\Facades\Validator::class,
|
||||
'View' => Illuminate\Support\Facades\View::class,
|
||||
//'Input' => Illuminate\Support\Facades\Input::class,
|
||||
'Form' => Collective\Html\FormFacade::class,
|
||||
'HTML' => Collective\Html\HtmlFacade::class,
|
||||
'Image' => Intervention\Image\Facades\Image::class,
|
||||
//'Image' => Intervention\Image\Facades\Image::class,
|
||||
'Carbon' => Carbon\Carbon::class,
|
||||
'Date' => Jenssegers\Date\Date::class,
|
||||
'HTMLHelper' => App\Services\HTMLHelper::class,
|
||||
|
|
|
|||
|
|
@ -45,6 +45,11 @@ return [
|
|||
'driver' => 'passport',
|
||||
'provider' => 'users',
|
||||
],
|
||||
|
||||
'customers' => [ // Neuer Guard für Kunden
|
||||
'driver' => 'session', // Session-basiert wie der Web-Guard
|
||||
'provider' => 'customers', // Neuer Provider
|
||||
],
|
||||
],
|
||||
|
||||
/*
|
||||
|
|
@ -69,6 +74,10 @@ return [
|
|||
'driver' => 'eloquent',
|
||||
'model' => App\User::class,
|
||||
],
|
||||
'customers' => [
|
||||
'driver' => 'eloquent',
|
||||
'model' => App\Models\Customer::class,
|
||||
],
|
||||
/* 'api_users' => [
|
||||
'driver' => 'eloquent',
|
||||
'model' => App\ApiUser::class,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|
|
@ -88,7 +90,7 @@ return [
|
|||
|
||||
'prefix' => env(
|
||||
'CACHE_PREFIX',
|
||||
str_slug(env('APP_NAME', 'laravel'), '_').'_cache'
|
||||
Str::slug(env('APP_NAME', 'laravel'), '_') . '_cache'
|
||||
),
|
||||
|
||||
];
|
||||
|
|
|
|||
26
config/cors.php
Normal file
26
config/cors.php
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
<?php
|
||||
|
||||
|
||||
|
||||
return [
|
||||
'paths' => ['api/*', '*'],
|
||||
|
||||
'allowed_methods' => ['*'],
|
||||
|
||||
'allowed_origins' => [
|
||||
'https://mivita.care',
|
||||
'https://*.mivita.care',
|
||||
],
|
||||
|
||||
'allowed_origins_patterns' => [
|
||||
'/^https:\/\/.*\.mivita\.care$/'
|
||||
],
|
||||
|
||||
'allowed_headers' => ['*'],
|
||||
|
||||
'exposed_headers' => [],
|
||||
|
||||
'max_age' => 0,
|
||||
|
||||
'supports_credentials' => true,
|
||||
];
|
||||
66
config/domains.php
Normal file
66
config/domains.php
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
<?php
|
||||
|
||||
return [
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Domain-Konfiguration
|
||||
|--------------------------------------------------------------------------
|
||||
|
|
||||
| Hier werden alle Domains und Subdomains der Anwendung zentral verwaltet.
|
||||
| Der DomainService und der DomainResolver verwenden diese Konfiguration,
|
||||
| um den richtigen Kontext für jede Anfrage zu bestimmen.
|
||||
|
|
||||
*/
|
||||
|
||||
'protocol' => env('APP_PROTOCOL', 'https://'),
|
||||
|
||||
'domains' => [
|
||||
// Die Hauptdomain (z.B. mivita.care)
|
||||
'main' => [
|
||||
'host' => env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
|
||||
'type' => 'main',
|
||||
],
|
||||
|
||||
// Die Shop-Domain (z.B. mivita.shop)
|
||||
'shop' => [
|
||||
'host' => env('APP_DOMAIN', 'mivita') . env('APP_TLD_SHOP', '.shop'),
|
||||
'type' => 'main-shop',
|
||||
'default_user_shop' => 'aloevera', // Fallback-Shop für diese Domain
|
||||
],
|
||||
|
||||
// Das CRM (z.B. my.mivita.care)
|
||||
'crm' => [
|
||||
'host' => env('APP_URL_CRM', 'my.') . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
|
||||
'type' => 'crm',
|
||||
],
|
||||
|
||||
// Das Partner-Portal (z.B. in.mivita.care)
|
||||
'portal' => [
|
||||
'host' => env('APP_URL_PORTAL', 'in.') . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
|
||||
'type' => 'portal',
|
||||
],
|
||||
|
||||
// Die Checkout-Domain (z.B. checkout.mivita.care)
|
||||
'checkout' => [
|
||||
'host' => env('APP_URL_CHECKOUT', 'checkout.') . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
|
||||
'type' => 'checkout',
|
||||
],
|
||||
|
||||
// Die dynamischen User-Shops (z.B. {slug}.mivita.care)
|
||||
'user-shop' => [
|
||||
'host' => '{subdomain}.' . env('APP_DOMAIN', 'mivita') . env('APP_TLD_CARE', '.care'),
|
||||
'type' => 'user-shop',
|
||||
],
|
||||
],
|
||||
|
||||
// Feste Subdomain-Präfixe, die reserviert sind
|
||||
'reserved_subdomains' => [
|
||||
'my',
|
||||
'in',
|
||||
'checkout',
|
||||
'www',
|
||||
'api',
|
||||
'mail',
|
||||
],
|
||||
|
||||
];
|
||||
|
|
@ -34,6 +34,11 @@ return [
|
|||
|
||||
'channels' => [
|
||||
|
||||
'order_controller' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/order_controller.log'),
|
||||
'level' => 'debug',
|
||||
],
|
||||
'payone' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/payone.log'),
|
||||
|
|
@ -48,7 +53,7 @@ return [
|
|||
],
|
||||
'cron' => [
|
||||
'driver' => 'single',
|
||||
'path' => storage_path('logs/corn.log'),
|
||||
'path' => storage_path('logs/cron.log'),
|
||||
],
|
||||
'stack' => [
|
||||
'driver' => 'stack',
|
||||
|
|
|
|||
|
|
@ -48,6 +48,18 @@ return [
|
|||
|
||||
/* Replace these words no matter what language. */
|
||||
'defaults' => [
|
||||
|
||||
],
|
||||
'full_word_check' => [
|
||||
'aloe',
|
||||
'aloevera',
|
||||
'mivita',
|
||||
'shop',
|
||||
'onlineshop',
|
||||
'aloeveramallorca',
|
||||
'aloemallorca',
|
||||
'aloeverademallorca',
|
||||
'babydaloe',
|
||||
'fuck',
|
||||
'shit',
|
||||
'anal',
|
||||
|
|
@ -121,16 +133,5 @@ return [
|
|||
'mivita',
|
||||
'shop',
|
||||
'myaloe',
|
||||
],
|
||||
'full_word_check' => [
|
||||
'aloe',
|
||||
'aloevera',
|
||||
'mivita',
|
||||
'shop',
|
||||
'onlineshop',
|
||||
'aloeveramallorca',
|
||||
'aloemallorca',
|
||||
'aloeverademallorca',
|
||||
'babydaloe',
|
||||
]
|
||||
];
|
||||
|
|
|
|||
|
|
@ -1,5 +1,7 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Support\Str;
|
||||
|
||||
return [
|
||||
|
||||
/*
|
||||
|
|
@ -124,7 +126,7 @@ return [
|
|||
|
||||
'cookie' => env(
|
||||
'SESSION_COOKIE',
|
||||
str_slug(env('APP_NAME', 'laravel'), '_').'_session'
|
||||
Str::slug(env('APP_NAME', 'laravel'), '_') . '_session'
|
||||
),
|
||||
|
||||
/*
|
||||
|
|
|
|||
|
|
@ -21,25 +21,28 @@ return [
|
|||
* To trust one or more specific proxies that connect
|
||||
* directly to your server, use an array of IP addresses:
|
||||
*/
|
||||
# 'proxies' => ['192.168.1.1'],
|
||||
# 'proxies' => ['192.168.1.1'],
|
||||
|
||||
/*
|
||||
* Or, to trust all proxies that connect
|
||||
* directly to your server, use a "*"
|
||||
*/
|
||||
# 'proxies' => '*',
|
||||
# 'proxies' => '*',
|
||||
|
||||
/*
|
||||
* Which headers to use to detect proxy related data (For, Host, Proto, Port)
|
||||
*
|
||||
* Options include:
|
||||
*
|
||||
* - Illuminate\Http\Request::HEADER_X_FORWARDED_ALL (use all x-forwarded-* headers to establish trust)
|
||||
* - Illuminate\Http\Request::HEADER_FORWARDED (use the FORWARDED header to establish trust)
|
||||
*
|
||||
* @link https://symfony.com/doc/current/deployment/proxies.html
|
||||
* In Laravel 11, instead of using constants, we use an array of trusted headers.
|
||||
* This replaces the old HEADER_X_FORWARDED_ALL constant.
|
||||
*/
|
||||
'headers' => Illuminate\Http\Request::HEADER_X_FORWARDED_ALL,
|
||||
'headers' => [
|
||||
'for' => 'X-Forwarded-For',
|
||||
'proto' => 'X-Forwarded-Proto',
|
||||
'host' => 'X-Forwarded-Host',
|
||||
'port' => 'X-Forwarded-Port',
|
||||
'prefix' => 'X-Forwarded-Prefix',
|
||||
'aws_cloud_front_for' => 'CloudFront-Forwarded-For',
|
||||
],
|
||||
|
||||
|
||||
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue