Phase 0: Fundament + Neuigkeiten & Termine #2

Merged
friloo merged 24 commits from phase-0 into main 2026-09-26 11:18:10 +00:00
15771 changed files with 1564103 additions and 5 deletions
Showing only changes of commit 9c0f8de791 - Show all commits

18
.editorconfig Normal file
View file

@ -0,0 +1,18 @@
root = true
[*]
charset = utf-8
end_of_line = lf
indent_size = 4
indent_style = space
insert_final_newline = true
trim_trailing_whitespace = true
[*.md]
trim_trailing_whitespace = false
[*.{yml,yaml}]
indent_size = 2
[{compose,docker-compose}.{yml,yaml}]
indent_size = 4

65
.env.example Normal file
View file

@ -0,0 +1,65 @@
APP_NAME=Inhaus
APP_ENV=local
APP_KEY=
APP_DEBUG=true
APP_URL=http://localhost:8080
APP_LOCALE=de
APP_FALLBACK_LOCALE=en
APP_FAKER_LOCALE=de_DE
APP_MAINTENANCE_DRIVER=file
# APP_MAINTENANCE_STORE=database
# PHP_CLI_SERVER_WORKERS=4
BCRYPT_ROUNDS=12
LOG_CHANNEL=stack
LOG_STACK=single
LOG_DEPRECATIONS_CHANNEL=null
LOG_LEVEL=debug
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=inhaus
DB_USERNAME=inhaus
DB_PASSWORD=
SESSION_DRIVER=database
SESSION_LIFETIME=120
SESSION_ENCRYPT=false
SESSION_PATH=/
SESSION_DOMAIN=null
BROADCAST_CONNECTION=log
FILESYSTEM_DISK=local
QUEUE_CONNECTION=database
CACHE_STORE=database
# CACHE_PREFIX=
MEMCACHED_HOST=127.0.0.1
REDIS_CLIENT=phpredis
REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379
MAIL_MAILER=log
MAIL_SCHEME=null
MAIL_HOST=127.0.0.1
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_FROM_ADDRESS="hello@example.com"
MAIL_FROM_NAME="${APP_NAME}"
AWS_ACCESS_KEY_ID=
AWS_SECRET_ACCESS_KEY=
AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false
VITE_APP_NAME="${APP_NAME}"

77
.forgejo/workflows/ci.yml Normal file
View file

@ -0,0 +1,77 @@
name: CI
on:
push:
branches: [main, develop]
pull_request:
jobs:
tests:
name: PHP ${{ matrix.php }} / ${{ matrix.db }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.3', '8.4']
db: ['mysql:8.0', 'mysql:8.4', 'mariadb:10.6', 'mariadb:11.4']
services:
db:
image: ${{ matrix.db }}
env:
MYSQL_DATABASE: inhaus_test
MYSQL_USER: inhaus
MYSQL_PASSWORD: inhaus
MYSQL_ROOT_PASSWORD: root
MARIADB_DATABASE: inhaus_test
MARIADB_USER: inhaus
MARIADB_PASSWORD: inhaus
MARIADB_ROOT_PASSWORD: root
env:
DB_HOST: db
DB_PORT: 3306
DB_USERNAME: inhaus
DB_PASSWORD: inhaus
COMPOSER_VENDOR_DIR: vendor-dev
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://github.com/shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: intl, zip, gd, pdo_mysql, bcmath, exif
coverage: none
- run: composer install --no-interaction --no-progress
- run: cp .env.example .env && php artisan key:generate
- name: Auf Datenbank warten
run: |
for i in $(seq 1 30); do
php -r 'try { new PDO("mysql:host=db;port=3306", "inhaus", "inhaus"); exit(0); } catch (Exception $e) { exit(1); }' && exit 0
sleep 2
done
exit 1
- run: vendor-dev/bin/phpunit
- run: vendor-dev/bin/pint --test
artifacts:
name: Build-Artefakte aktuell
runs-on: ubuntu-latest
steps:
- uses: https://code.forgejo.org/actions/checkout@v4
- uses: https://github.com/shivammathur/setup-php@v2
with:
php-version: '8.3'
extensions: intl, zip, gd, pdo_mysql, bcmath, exif
coverage: none
- uses: https://code.forgejo.org/actions/setup-node@v4
with:
node-version: '24'
- name: vendor/ entspricht composer.lock (ohne Dev-Pakete)
run: |
composer install --no-dev --optimize-autoloader --no-interaction --no-progress --no-scripts
git status --porcelain vendor
test -z "$(git status --porcelain vendor)"
- name: public/build/ entspricht dem Quellcode
run: |
npm ci --no-audit --no-fund
npm run build
git status --porcelain public/build
test -z "$(git status --porcelain public/build)"

16
.gitattributes vendored Normal file
View file

@ -0,0 +1,16 @@
* text=auto eol=lf
*.blade.php diff=html
*.css diff=css
*.html diff=html
*.md diff=markdown
*.php diff=php
/.github export-ignore
# Mitversionierte Build-Artefakte byte-genau speichern (keine Zeilenende-Normalisierung).
/vendor/** -text
/public/build/** -text
/public/css/filament/** -text
/public/js/filament/** -text
/public/fonts/filament/** -text

28
.gitignore vendored Normal file
View file

@ -0,0 +1,28 @@
# vendor/, public/build/ und die veröffentlichten Filament-Assets werden bewusst
# mitversioniert: beim Kunden laufen weder Composer noch Node (siehe CONTRIBUTING.md).
*.log
.DS_Store
.env
.env.backup
.env.production
.phpactor.json
.phpunit.result.cache
/.idea
/.phpunit.cache
/.vscode
/.zed
/auth.json
/node_modules
/vendor-dev
/public/fonts-manifest.dev.json
/public/hot
/public/storage
/public/uploads/*
!/public/uploads/.htaccess
/storage/*.key
/storage/pail
/storage/.version
/storage/.update-progress
/storage/.maintenance
_ide_helper.php
Thumbs.db

2
.npmrc Normal file
View file

@ -0,0 +1,2 @@
ignore-scripts=true
audit=true

15
CHANGELOG.md Normal file
View file

@ -0,0 +1,15 @@
# Änderungsprotokoll
Neueste Version oben. Jeder Abschnitt beginnt mit `## MAJOR.MINOR.PATCH` und
enthält kurze Stichpunkte für Anwenderinnen und Anwender – keine Commit-Texte.
Der Self-Updater zeigt diese Abschnitte bei neuen Versionen an.
## 0.1.0
- Erste Fassung des Mitarbeiterportals
- Anmeldung mit E-Mail und Passwort, „Passwort vergessen“ und Passwort ändern
- Eigenes Profil mit Profilbild, Funktion, Abteilung, Standort und Kontaktdaten
- Profilseiten von Kolleginnen und Kollegen
- Profilbild und Menü im Kopfbereich, Darstellung hell, dunkel oder wie im System
- Admin-Bereich mit Benutzerverwaltung
- Erscheinungsbild: Name des Portals, Logo und Primärfarbe

9
CLAUDE.md Normal file
View file

@ -0,0 +1,9 @@
# Inhaus – Hinweise für Coding-Agenten
- Plan und Architektur: `docs/PLAN.md`; Hersteller-Vorgaben (wörtlich umzusetzen): `docs/specs/`
- Entwicklungspakete liegen in `vendor-dev/` (`COMPOSER_VENDOR_DIR=vendor-dev`), `vendor/` ist das
mitversionierte Produktions-Vendor. Nie Dev-Pakete nach `vendor/` installieren.
- Tests: `vendor-dev/bin/phpunit` (PHPUnit, nicht Pest – Pest lädt fest `vendor/autoload.php`),
gegen MySQL/MariaDB-Datenbank `inhaus_test`. Formatierung: `vendor-dev/bin/pint`.
- Jede Änderung: `CHANGELOG.md` + `App\Version::VERSION` anheben, `bin/build`, Artefakte mitcommitten.
- UI-Texte Deutsch mit Umlauten, Schlüssel/Routen ASCII. Kein Node/Shell auf dem Kundenserver voraussetzen.

64
CONTRIBUTING.md Normal file
View file

@ -0,0 +1,64 @@
# Mitarbeit an Inhaus
## Grundsatz: Das Repository ist das Release
Kunden installieren und aktualisieren Inhaus ohne Shell – auch auf Shared
Webhosting. Der Self-Updater lädt den Stand des Branches als ZIP
(`main` = Kanal „stable“, `develop` = Kanal „development“).
Deshalb liegen im Repository auch alle Build-Artefakte:
| Verzeichnis | Inhalt | erzeugt durch |
|---|---|---|
| `vendor/` | PHP-Pakete **ohne** Entwicklungsabhängigkeiten | `bin/build` |
| `public/build/` | kompiliertes Portal-Frontend (Vue/Vuetify) | `bin/build` |
| `public/css/filament`, `public/js/filament`, `public/fonts/filament` | Filament-Assets | `php artisan filament:upgrade` (läuft bei `composer install`) |
Die CI prüft, dass diese Artefakte zum Quellcode passen.
## Entwicklungsumgebung
Voraussetzungen: PHP 8.3 (Extensions: intl, zip, gd, pdo_mysql, bcmath, exif),
Composer, Node 24, MySQL ≥ 8.0 oder MariaDB ≥ 10.6 – oder Docker
(`docker compose up -d`, siehe `docker-compose.yml`).
**Entwicklungspakete gehören nach `vendor-dev/`**, nicht nach `vendor/`.
`bootstrap/autoload.php` nimmt automatisch `vendor-dev/`, wenn es existiert.
```bash
export COMPOSER_VENDOR_DIR=vendor-dev # am besten dauerhaft in die Shell-Konfiguration
composer install
cp .env.example .env && php artisan key:generate
php artisan migrate --seed # Demo-Konto: admin@example.com / password
npm ci && npm run dev # oder: npm run build
```
Tests laufen gegen MySQL/MariaDB (Datenbank `inhaus_test`, Zugang wie in `.env`):
```bash
vendor-dev/bin/phpunit
vendor-dev/bin/pint
```
Neue Pakete immer mit gesetztem `COMPOSER_VENDOR_DIR=vendor-dev` hinzufügen
und danach `bin/build` ausführen, damit `vendor/` nachzieht.
## Ablauf für jede Änderung
1. `CHANGELOG.md`: neuen Abschnitt `## MAJOR.MINOR.PATCH` ganz oben ergänzen –
kurze deutsche Stichpunkte für Anwenderinnen und Anwender, keine Commit-Texte
2. `App\Version::VERSION` in `app/Version.php` anheben
(Patch = Fehlerbehebung, Minor = neue Funktion)
3. Tests grün (`vendor-dev/bin/phpunit`), Code formatiert (`vendor-dev/bin/pint`)
4. `bin/build` ausführen und `vendor/` sowie `public/build/` mitcommitten
5. Merge in `develop` bzw. `main` – damit ist die Fassung sofort über den
Self-Updater verfügbar
## Konventionen
- Oberflächentexte auf Deutsch mit echten Umlauten; technische Schlüssel,
Routennamen, Tabellen und Spalten in ASCII/Englisch
- Nur Funktionen nutzen, die MySQL **und** MariaDB beherrschen
- Kein Node, kein Shell-Aufruf und kein Dauerprozess auf dem Server voraussetzen
- Keine externen Ressourcen (CDNs, Google Fonts) einbinden – DSGVO
- N+1-Abfragen vermeiden: `Model::preventLazyLoading()` ist außerhalb der
Produktion aktiv

View file

@ -1,5 +1,21 @@
# Inhaus
Modulares Mitarbeiterportal (Intranet/CMS) – selbst gehostet, auch auf Shared Webhosting.
Modulares Mitarbeiterportal (Intranet/CMS) – selbst gehostet, auch auf Shared
Webhosting. Laravel 13, Filament 5 (Admin), Inertia + Vue 3 + Vuetify 4
(Material 3) im Portal, MySQL/MariaDB, Apache.
Der Projektplan liegt unter [`docs/PLAN.md`](docs/PLAN.md).
- Projektplan: [`docs/PLAN.md`](docs/PLAN.md)
- Mitarbeit, Entwicklungsumgebung und Release-Ablauf: [`CONTRIBUTING.md`](CONTRIBUTING.md)
- Änderungen: [`CHANGELOG.md`](CHANGELOG.md)
## Schnellstart (Entwicklung)
```bash
export COMPOSER_VENDOR_DIR=vendor-dev
composer install
cp .env.example .env && php artisan key:generate
php artisan migrate --seed
php artisan serve
```
Anmeldung: `admin@example.com` / `password` · Admin-Bereich unter `/admin`.

View file

@ -0,0 +1,19 @@
<?php
namespace App\Actions\Fortify;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Validation\Rules\Password;
trait PasswordValidationRules
{
/**
* Get the validation rules used to validate passwords.
*
* @return array<int, Rule|array<mixed>|string>
*/
protected function passwordRules(): array
{
return ['required', 'string', Password::default(), 'confirmed'];
}
}

View file

@ -0,0 +1,32 @@
<?php
namespace App\Actions\Fortify;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
use Laravel\Fortify\Contracts\ResetsUserPasswords;
class ResetUserPassword implements ResetsUserPasswords
{
use PasswordValidationRules;
/**
* Validate and reset the user's forgotten password.
*
* @param array<string, string> $input
*
* @throws ValidationException
*/
public function reset(User $user, array $input): void
{
Validator::make($input, [
'password' => $this->passwordRules(),
])->validate();
$user->forceFill([
'password' => Hash::make($input['password']),
])->save();
}
}

View file

@ -0,0 +1,35 @@
<?php
namespace App\Actions\Fortify;
use App\Models\User;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Validation\ValidationException;
use Laravel\Fortify\Contracts\UpdatesUserPasswords;
class UpdateUserPassword implements UpdatesUserPasswords
{
use PasswordValidationRules;
/**
* Validate and update the user's password.
*
* @param array<string, string> $input
*
* @throws ValidationException
*/
public function update(User $user, array $input): void
{
Validator::make($input, [
'current_password' => ['required', 'string', 'current_password:web'],
'password' => $this->passwordRules(),
], [
'current_password.current_password' => __('The provided password does not match your current password.'),
])->validateWithBag('updatePassword');
$user->forceFill([
'password' => Hash::make($input['password']),
])->save();
}
}

View file

@ -0,0 +1,101 @@
<?php
namespace App\Filament\Pages;
use App\Support\Branding;
use App\Support\Settings;
use BackedEnum;
use Filament\Forms\Components\ColorPicker;
use Filament\Forms\Components\FileUpload;
use Filament\Forms\Components\TextInput;
use Filament\Notifications\Notification;
use Filament\Pages\Page;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Illuminate\Support\Facades\Storage;
use UnitEnum;
/**
* Basis-Branding (Phase 0). Die vollständige Seite „Erscheinungsbild“ mit
* Logo-Varianten, Schriften, Vorschau usw. folgt in Phase 5.
*/
class Appearance extends Page
{
protected string $view = 'filament.pages.appearance';
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedPaintBrush;
protected static string|UnitEnum|null $navigationGroup = 'System';
protected static ?string $navigationLabel = 'Erscheinungsbild';
protected static ?string $title = 'Erscheinungsbild';
protected static ?string $slug = 'erscheinungsbild';
/** @var array<string, mixed>|null */
public ?array $data = [];
public function mount(Branding $branding): void
{
$this->form->fill([
'portal_name' => $branding->portalName(),
'primary_color' => $branding->primaryColor(),
'logo_path' => $branding->logoPath(),
]);
}
public function form(Schema $schema): Schema
{
return $schema
->components([
Section::make('Portal')
->description('Name und Logo erscheinen im Kopfbereich, auf der Anmeldeseite und im Browser-Tab.')
->schema([
TextInput::make('portal_name')
->label('Name des Portals')
->placeholder(Branding::DEFAULT_NAME)
->maxLength(60),
FileUpload::make('logo_path')
->label('Logo')
->helperText('SVG, PNG oder WebP, am besten mit transparentem Hintergrund.')
->disk('uploads')
->directory('branding')
->visibility('public')
->acceptedFileTypes(['image/svg+xml', 'image/png', 'image/webp'])
->maxSize(2048),
]),
Section::make('Farben')
->description('Aus der Primärfarbe wird die komplette Farbpalette für den hellen und den dunklen Modus berechnet.')
->schema([
ColorPicker::make('primary_color')
->label('Primärfarbe')
->regex('/^#[0-9a-fA-F]{6}$/')
->required(),
]),
])
->statePath('data');
}
public function save(Settings $settings, Branding $branding): void
{
$data = $this->form->getState();
$previousLogo = $branding->logoPath();
$settings->setMany([
'branding.portal_name' => filled($data['portal_name']) ? trim($data['portal_name']) : null,
'branding.primary_color' => strtoupper($data['primary_color']),
'branding.logo_path' => $data['logo_path'] ?: null,
]);
if ($previousLogo && $previousLogo !== $data['logo_path']) {
Storage::disk('uploads')->delete($previousLogo);
}
Notification::make()
->success()
->title('Erscheinungsbild gespeichert')
->send();
}
}

View file

@ -0,0 +1,11 @@
<?php
namespace App\Filament\Resources\Users\Pages;
use App\Filament\Resources\Users\UserResource;
use Filament\Resources\Pages\CreateRecord;
class CreateUser extends CreateRecord
{
protected static string $resource = UserResource::class;
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\Users\Pages;
use App\Filament\Resources\Users\UserResource;
use Filament\Actions\DeleteAction;
use Filament\Resources\Pages\EditRecord;
class EditUser extends EditRecord
{
protected static string $resource = UserResource::class;
protected function getHeaderActions(): array
{
return [
DeleteAction::make(),
];
}
}

View file

@ -0,0 +1,19 @@
<?php
namespace App\Filament\Resources\Users\Pages;
use App\Filament\Resources\Users\UserResource;
use Filament\Actions\CreateAction;
use Filament\Resources\Pages\ListRecords;
class ListUsers extends ListRecords
{
protected static string $resource = UserResource::class;
protected function getHeaderActions(): array
{
return [
CreateAction::make(),
];
}
}

View file

@ -0,0 +1,63 @@
<?php
namespace App\Filament\Resources\Users\Schemas;
use App\Models\User;
use Filament\Forms\Components\Textarea;
use Filament\Forms\Components\TextInput;
use Filament\Forms\Components\Toggle;
use Filament\Schemas\Components\Section;
use Filament\Schemas\Schema;
use Illuminate\Validation\Rules\Password;
class UserForm
{
public static function configure(Schema $schema): Schema
{
return $schema
->columns(3)
->components([
Section::make('Person')
->columnSpan(2)
->columns(2)
->schema([
TextInput::make('first_name')->label('Vorname')->required()->maxLength(100),
TextInput::make('last_name')->label('Nachname')->required()->maxLength(100),
TextInput::make('email')
->label('E-Mail-Adresse')
->email()
->required()
->maxLength(255)
->unique(ignoreRecord: true)
->columnSpanFull(),
TextInput::make('job_title')->label('Funktion')->maxLength(150),
TextInput::make('department')->label('Abteilung')->maxLength(150),
TextInput::make('location')->label('Standort')->maxLength(150),
TextInput::make('phone')->label('Telefon')->tel()->maxLength(50),
TextInput::make('mobile')->label('Mobil')->tel()->maxLength(50),
Textarea::make('about')->label('Über mich')->rows(3)->maxLength(2000)->columnSpanFull(),
]),
Section::make('Konto')
->columnSpan(1)
->schema([
Toggle::make('is_active')
->label('Aktiv')
->helperText('Deaktivierte Konten können sich nicht anmelden und erscheinen nicht im Portal.')
->default(true),
Toggle::make('is_admin')
->label('Administrator')
->helperText('Zugriff auf diesen Admin-Bereich. Wird später durch Rollen ersetzt.')
->disabled(fn (?User $record) => $record?->is(auth()->user()) ?? false),
TextInput::make('password')
->label(fn (string $operation) => $operation === 'create' ? 'Passwort' : 'Neues Passwort')
->helperText(fn (string $operation) => $operation === 'create'
? 'Leer lassen, wenn sich die Person nur über den Identity Provider anmelden soll.'
: 'Leer lassen, um das Passwort nicht zu ändern.')
->password()
->revealable()
->rule(Password::default())
->dehydrated(fn (?string $state) => filled($state)),
]),
]);
}
}

View file

@ -0,0 +1,50 @@
<?php
namespace App\Filament\Resources\Users\Tables;
use App\Models\User;
use Filament\Actions\EditAction;
use Filament\Tables\Columns\IconColumn;
use Filament\Tables\Columns\ImageColumn;
use Filament\Tables\Columns\TextColumn;
use Filament\Tables\Filters\SelectFilter;
use Filament\Tables\Filters\TernaryFilter;
use Filament\Tables\Table;
class UsersTable
{
public static function configure(Table $table): Table
{
return $table
->defaultSort('name')
->columns([
ImageColumn::make('avatar')
->label('')
->circular()
->state(fn (User $record) => $record->avatarUrl(96))
->width(40),
TextColumn::make('name')->label('Name')->searchable()->sortable(),
TextColumn::make('email')->label('E-Mail')->searchable()->toggleable(),
TextColumn::make('job_title')->label('Funktion')->toggleable(),
TextColumn::make('department')->label('Abteilung')->sortable()->toggleable(),
TextColumn::make('location')->label('Standort')->sortable()->toggleable(isToggledHiddenByDefault: true),
IconColumn::make('is_admin')->label('Admin')->boolean(),
IconColumn::make('is_active')->label('Aktiv')->boolean(),
TextColumn::make('last_login_at')
->label('Letzte Anmeldung')
->since()
->sortable()
->toggleable(isToggledHiddenByDefault: true),
])
->filters([
TernaryFilter::make('is_active')->label('Aktiv'),
TernaryFilter::make('is_admin')->label('Administrator'),
SelectFilter::make('department')
->label('Abteilung')
->options(fn () => User::query()->whereNotNull('department')->distinct()->orderBy('department')->pluck('department', 'department')->all()),
])
->recordActions([
EditAction::make(),
]);
}
}

View file

@ -0,0 +1,57 @@
<?php
namespace App\Filament\Resources\Users;
use App\Filament\Resources\Users\Pages\CreateUser;
use App\Filament\Resources\Users\Pages\EditUser;
use App\Filament\Resources\Users\Pages\ListUsers;
use App\Filament\Resources\Users\Schemas\UserForm;
use App\Filament\Resources\Users\Tables\UsersTable;
use App\Models\User;
use BackedEnum;
use Filament\Resources\Resource;
use Filament\Schemas\Schema;
use Filament\Support\Icons\Heroicon;
use Filament\Tables\Table;
class UserResource extends Resource
{
protected static ?string $model = User::class;
protected static string|BackedEnum|null $navigationIcon = Heroicon::OutlinedUsers;
protected static ?string $modelLabel = 'Benutzer';
protected static ?string $pluralModelLabel = 'Benutzer';
protected static ?string $slug = 'benutzer';
protected static ?string $recordTitleAttribute = 'name';
public static function form(Schema $schema): Schema
{
return UserForm::configure($schema);
}
public static function table(Table $table): Table
{
return UsersTable::configure($table);
}
/**
* @return array<int, string>
*/
public static function getGloballySearchableAttributes(): array
{
return ['name', 'email', 'department'];
}
public static function getPages(): array
{
return [
'index' => ListUsers::route('/'),
'create' => CreateUser::route('/neu'),
'edit' => EditUser::route('/{record}/bearbeiten'),
];
}
}

View file

@ -0,0 +1,8 @@
<?php
namespace App\Http\Controllers;
abstract class Controller
{
//
}

View file

@ -0,0 +1,15 @@
<?php
namespace App\Http\Controllers;
use Illuminate\Http\Request;
use Inertia\Inertia;
use Inertia\Response;
class DashboardController extends Controller
{
public function __invoke(Request $request): Response
{
return Inertia::render('Dashboard');
}
}

View file

@ -0,0 +1,32 @@
<?php
namespace App\Http\Controllers;
use App\Models\User;
use Inertia\Inertia;
use Inertia\Response;
class PeopleController extends Controller
{
public function show(User $user): Response
{
abort_unless($user->is_active, 404);
return Inertia::render('Profile/Show', [
'person' => [
'id' => $user->id,
'name' => $user->name,
'initials' => $user->initials,
'email' => $user->email,
'job_title' => $user->job_title,
'department' => $user->department,
'location' => $user->location,
'phone' => $user->phone,
'mobile' => $user->mobile,
'about' => $user->about,
'avatar_url' => $user->avatarUrl(256),
],
'isOwnProfile' => $user->is(auth()->user()),
]);
}
}

View file

@ -0,0 +1,75 @@
<?php
namespace App\Http\Controllers;
use App\Http\Requests\UpdateProfileRequest;
use App\Models\User;
use App\Support\Avatars;
use Illuminate\Http\RedirectResponse;
use Illuminate\Http\Request;
use Illuminate\Validation\Rule;
use Illuminate\Validation\Rules\File;
use Inertia\Inertia;
use Inertia\Response;
class ProfileController extends Controller
{
public function show(Request $request): RedirectResponse
{
return to_route('people.show', $request->user());
}
public function edit(Request $request): Response
{
$user = $request->user();
return Inertia::render('Profile/Edit', [
'profile' => [
...$user->only([
'first_name', 'last_name', 'email', 'job_title', 'department',
'location', 'phone', 'mobile', 'about', 'theme',
]),
'name' => $user->name,
'initials' => $user->initials,
'avatar_url' => $user->avatarUrl(256),
'has_password' => $user->password !== null,
],
]);
}
public function update(UpdateProfileRequest $request): RedirectResponse
{
$request->user()->update($request->validated());
return back()->with('status', 'profile-updated');
}
public function updateAvatar(Request $request, Avatars $avatars): RedirectResponse
{
$request->validate([
'avatar' => ['required', File::image()->types(['jpg', 'jpeg', 'png', 'webp'])->max(8 * 1024)],
]);
$avatars->store($request->user(), $request->file('avatar'));
return back()->with('status', 'avatar-updated');
}
public function destroyAvatar(Request $request, Avatars $avatars): RedirectResponse
{
$avatars->delete($request->user());
return back()->with('status', 'avatar-deleted');
}
public function updateTheme(Request $request): RedirectResponse
{
$validated = $request->validate([
'theme' => ['required', Rule::in(User::THEMES)],
]);
$request->user()->update($validated);
return back();
}
}

View file

@ -0,0 +1,42 @@
<?php
namespace App\Http\Middleware;
use App\Support\Branding;
use Illuminate\Http\Request;
use Inertia\Middleware;
class HandleInertiaRequests extends Middleware
{
protected $rootView = 'app';
public function __construct(private readonly Branding $branding) {}
/**
* @return array<string, mixed>
*/
public function share(Request $request): array
{
$user = $request->user();
return [
...parent::share($request),
'branding' => $this->branding->toArray(),
'auth' => [
'user' => $user ? [
'id' => $user->id,
'name' => $user->name,
'email' => $user->email,
'initials' => $user->initials,
'job_title' => $user->job_title,
'avatar_url' => $user->avatarUrl(96),
'theme' => $user->theme,
'is_admin' => $user->is_admin,
] : null,
],
'flash' => [
'status' => fn () => $request->session()->get('status'),
],
];
}
}

View file

@ -0,0 +1,48 @@
<?php
namespace App\Http\Requests;
use Illuminate\Foundation\Http\FormRequest;
use Illuminate\Validation\Rule;
class UpdateProfileRequest extends FormRequest
{
/**
* @return array<string, mixed>
*/
public function rules(): array
{
return [
'first_name' => ['required', 'string', 'max:100'],
'last_name' => ['required', 'string', 'max:100'],
'email' => [
'required', 'string', 'lowercase', 'email', 'max:255',
Rule::unique('users')->ignore($this->user()->id),
],
'job_title' => ['nullable', 'string', 'max:150'],
'department' => ['nullable', 'string', 'max:150'],
'location' => ['nullable', 'string', 'max:150'],
'phone' => ['nullable', 'string', 'max:50'],
'mobile' => ['nullable', 'string', 'max:50'],
'about' => ['nullable', 'string', 'max:2000'],
];
}
/**
* @return array<string, string>
*/
public function attributes(): array
{
return [
'first_name' => 'Vorname',
'last_name' => 'Nachname',
'email' => 'E-Mail-Adresse',
'job_title' => 'Funktion',
'department' => 'Abteilung',
'location' => 'Standort',
'phone' => 'Telefon',
'mobile' => 'Mobil',
'about' => 'Über mich',
];
}
}

23
app/Models/Setting.php Normal file
View file

@ -0,0 +1,23 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Model;
#[Fillable(['key', 'value'])]
class Setting extends Model
{
protected $primaryKey = 'key';
protected $keyType = 'string';
public $incrementing = false;
protected function casts(): array
{
return [
'value' => 'json',
];
}
}

95
app/Models/User.php Normal file
View file

@ -0,0 +1,95 @@
<?php
namespace App\Models;
use App\Support\Avatars;
use Database\Factories\UserFactory;
use Filament\Models\Contracts\FilamentUser;
use Filament\Models\Contracts\HasAvatar;
use Filament\Panel;
use Illuminate\Database\Eloquent\Attributes\Fillable;
use Illuminate\Database\Eloquent\Attributes\Hidden;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\Casts\Attribute;
use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Foundation\Auth\User as Authenticatable;
use Illuminate\Notifications\Notifiable;
use Illuminate\Support\Str;
#[Fillable([
'name', 'first_name', 'last_name', 'email', 'password',
'job_title', 'department', 'location', 'phone', 'mobile', 'about',
'is_admin', 'is_active', 'theme',
])]
#[Hidden(['password', 'remember_token'])]
class User extends Authenticatable implements FilamentUser, HasAvatar
{
/** @use HasFactory<UserFactory> */
use HasFactory, Notifiable;
public const THEMES = ['system', 'light', 'dark'];
protected static function booted(): void
{
// Der Anzeigename folgt Vor- und Nachname, solange beide gepflegt sind.
static::saving(function (User $user): void {
$fullName = trim($user->first_name.' '.$user->last_name);
if ($fullName !== '') {
$user->name = $fullName;
}
});
}
protected function casts(): array
{
return [
'email_verified_at' => 'datetime',
'last_login_at' => 'datetime',
'password' => 'hashed',
'is_admin' => 'boolean',
'is_active' => 'boolean',
];
}
/**
* Vorläufig: Zugriff auf das Admin-Backend über das Flag is_admin.
* Wird in Phase 2 durch das Rollen- und Rechtesystem ersetzt.
*/
public function canAccessPanel(Panel $panel): bool
{
return $this->is_admin && $this->is_active;
}
public function getFilamentAvatarUrl(): ?string
{
return $this->avatarUrl(96);
}
public function avatarUrl(int $size = 256): ?string
{
return app(Avatars::class)->url($this, $size);
}
/**
* @return Attribute<string, never>
*/
protected function initials(): Attribute
{
return Attribute::get(function (): string {
$parts = preg_split('/\s+/', trim($this->name)) ?: [];
$first = Str::substr($parts[0] ?? '', 0, 1);
$last = count($parts) > 1 ? Str::substr(end($parts), 0, 1) : '';
return Str::upper($first.$last) ?: '?';
});
}
/**
* @param Builder<User> $query
*/
public function scopeActive(Builder $query): void
{
$query->where('is_active', true);
}
}

View file

@ -0,0 +1,28 @@
<?php
namespace App\Providers;
use App\Support\Avatars;
use App\Support\Branding;
use App\Support\Settings;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\ServiceProvider;
use Illuminate\Validation\Rules\Password;
class AppServiceProvider extends ServiceProvider
{
public function register(): void
{
$this->app->singleton(Settings::class);
$this->app->singleton(Branding::class);
$this->app->singleton(Avatars::class);
}
public function boot(): void
{
// N+1-Abfragen in Entwicklung und Tests sofort sichtbar machen (docs/PLAN.md, Performance).
Model::preventLazyLoading(! $this->app->isProduction());
Password::defaults(fn () => Password::min(10)->letters()->numbers());
}
}

View file

@ -0,0 +1,69 @@
<?php
namespace App\Providers\Filament;
use App\Support\Branding;
use Filament\Http\Middleware\Authenticate;
use Filament\Http\Middleware\AuthenticateSession;
use Filament\Http\Middleware\DisableBladeIconComponents;
use Filament\Http\Middleware\DispatchServingFilamentEvent;
use Filament\Navigation\NavigationItem;
use Filament\Pages\Dashboard;
use Filament\Panel;
use Filament\PanelProvider;
use Filament\Support\Colors\Color;
use Filament\Support\Icons\Heroicon;
use Filament\Widgets\AccountWidget;
use Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse;
use Illuminate\Cookie\Middleware\EncryptCookies;
use Illuminate\Foundation\Http\Middleware\PreventRequestForgery;
use Illuminate\Routing\Middleware\SubstituteBindings;
use Illuminate\Session\Middleware\StartSession;
use Illuminate\View\Middleware\ShareErrorsFromSession;
class AdminPanelProvider extends PanelProvider
{
public function panel(Panel $panel): Panel
{
// Keine eigene Filament-Anmeldung: das Admin-Backend nutzt den Portal-Login
// (und damit später auch Entra ID). Nicht angemeldete Personen landen auf /login.
return $panel
->default()
->id('admin')
->path('admin')
->brandName(fn () => app(Branding::class)->portalName())
->brandLogo(fn () => app(Branding::class)->logoUrl())
->colors(fn () => [
'primary' => Color::hex(app(Branding::class)->primaryColor()),
])
->navigationItems([
NavigationItem::make('Zum Portal')
->url('/')
->icon(Heroicon::OutlinedArrowTopRightOnSquare)
->sort(100),
])
->discoverResources(in: app_path('Filament/Resources'), for: 'App\Filament\Resources')
->discoverPages(in: app_path('Filament/Pages'), for: 'App\Filament\Pages')
->pages([
Dashboard::class,
])
->discoverWidgets(in: app_path('Filament/Widgets'), for: 'App\Filament\Widgets')
->widgets([
AccountWidget::class,
])
->middleware([
EncryptCookies::class,
AddQueuedCookiesToResponse::class,
StartSession::class,
AuthenticateSession::class,
ShareErrorsFromSession::class,
PreventRequestForgery::class,
SubstituteBindings::class,
DisableBladeIconComponents::class,
DispatchServingFilamentEvent::class,
])
->authMiddleware([
Authenticate::class,
]);
}
}

View file

@ -0,0 +1,65 @@
<?php
namespace App\Providers;
use App\Actions\Fortify\ResetUserPassword;
use App\Actions\Fortify\UpdateUserPassword;
use App\Models\User;
use Illuminate\Auth\Events\Login;
use Illuminate\Cache\RateLimiting\Limit;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Event;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\RateLimiter;
use Illuminate\Support\ServiceProvider;
use Illuminate\Support\Str;
use Inertia\Inertia;
use Laravel\Fortify\Fortify;
class FortifyServiceProvider extends ServiceProvider
{
public function boot(): void
{
Fortify::updateUserPasswordsUsing(UpdateUserPassword::class);
Fortify::resetUserPasswordsUsing(ResetUserPassword::class);
Fortify::loginView(fn (Request $request) => Inertia::render('Auth/Login', [
'canResetPassword' => true,
'status' => $request->session()->get('status'),
]));
Fortify::requestPasswordResetLinkView(fn (Request $request) => Inertia::render('Auth/ForgotPassword', [
'status' => $request->session()->get('status'),
]));
Fortify::resetPasswordView(fn (Request $request) => Inertia::render('Auth/ResetPassword', [
'email' => $request->input('email'),
'token' => $request->route('token'),
]));
// Deaktivierte Konten und Konten ohne lokales Passwort (später: nur IdP) können
// sich nicht per Passwort anmelden.
Fortify::authenticateUsing(function (Request $request): ?User {
$user = User::query()->where('email', Str::lower($request->input(Fortify::username())))->first();
if ($user && $user->is_active && $user->password !== null
&& Hash::check($request->input('password'), $user->password)) {
return $user;
}
return null;
});
Event::listen(Login::class, function (Login $event): void {
if ($event->user instanceof User) {
$event->user->forceFill(['last_login_at' => now()])->saveQuietly();
}
});
RateLimiter::for('login', function (Request $request) {
$throttleKey = Str::transliterate(Str::lower($request->input(Fortify::username())).'|'.$request->ip());
return Limit::perMinute(5)->by($throttleKey);
});
}
}

64
app/Support/Avatars.php Normal file
View file

@ -0,0 +1,64 @@
<?php
namespace App\Support;
use App\Models\User;
use Illuminate\Http\UploadedFile;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Str;
use Intervention\Image\Drivers\Gd\Driver;
use Intervention\Image\Encoders\WebpEncoder;
use Intervention\Image\ImageManager;
/**
* Speichert Profilbilder als quadratische WebP-Dateien in festen Größen.
*
* Die Bilder liegen im öffentlichen Upload-Verzeichnis und werden von Apache
* direkt ausgeliefert – ohne PHP und ohne Symlink (auf Shared Hosting oft
* nicht möglich). Der Zufallsanteil im Dateinamen macht die URL bei jedem
* neuen Bild eindeutig, sodass sie lange gecacht werden darf.
*/
class Avatars
{
/** Pixelgrößen, die erzeugt werden (Header, Listen, Profilseite). */
public const SIZES = [96, 256];
public function store(User $user, UploadedFile $file): void
{
$image = ImageManager::usingDriver(Driver::class)->decodePath($file->getRealPath());
$base = 'avatars/'.$user->getKey().'/'.Str::random(12);
foreach (self::SIZES as $size) {
$encoded = (clone $image)->cover($size, $size)->encode(new WebpEncoder(quality: 85));
Storage::disk('uploads')->put("{$base}-{$size}.webp", $encoded->toString());
}
$this->delete($user);
$user->forceFill(['avatar_path' => $base])->save();
}
public function delete(User $user): void
{
if ($user->avatar_path === null) {
return;
}
foreach (self::SIZES as $size) {
Storage::disk('uploads')->delete("{$user->avatar_path}-{$size}.webp");
}
$user->forceFill(['avatar_path' => null])->save();
}
public function url(User $user, int $size = 256): ?string
{
if ($user->avatar_path === null) {
return null;
}
$size = in_array($size, self::SIZES, true) ? $size : max(self::SIZES);
return Storage::disk('uploads')->url("{$user->avatar_path}-{$size}.webp");
}
}

56
app/Support/Branding.php Normal file
View file

@ -0,0 +1,56 @@
<?php
namespace App\Support;
use Illuminate\Support\Facades\Storage;
/**
* Basis-Branding der Installation (Phase 0): Portalname, Logo, Primärfarbe.
* Das vollständige Erscheinungsbild folgt in Phase 5 (docs/PLAN.md, Abschnitt 12).
*/
class Branding
{
public const DEFAULT_NAME = 'Inhaus';
public const DEFAULT_PRIMARY_COLOR = '#2E6B5E';
public function __construct(private readonly Settings $settings) {}
public function portalName(): string
{
return $this->settings->get('branding.portal_name') ?: self::DEFAULT_NAME;
}
public function primaryColor(): string
{
$color = $this->settings->get('branding.primary_color');
return is_string($color) && preg_match('/^#[0-9a-fA-F]{6}$/', $color)
? strtoupper($color)
: self::DEFAULT_PRIMARY_COLOR;
}
public function logoPath(): ?string
{
return $this->settings->get('branding.logo_path') ?: null;
}
public function logoUrl(): ?string
{
$path = $this->logoPath();
return $path ? Storage::disk('uploads')->url($path) : null;
}
/**
* @return array{portal_name: string, primary_color: string, logo_url: string|null}
*/
public function toArray(): array
{
return [
'portal_name' => $this->portalName(),
'primary_color' => $this->primaryColor(),
'logo_url' => $this->logoUrl(),
];
}
}

62
app/Support/Settings.php Normal file
View file

@ -0,0 +1,62 @@
<?php
namespace App\Support;
use App\Models\Setting;
use Illuminate\Support\Facades\Cache;
/**
* Systemweite Einstellungen als Schlüssel/Wert-Paare.
*
* Alle Werte werden gemeinsam gecacht, damit ein Seitenaufruf höchstens eine
* Abfrage braucht – egal wie viele Einstellungen gelesen werden.
*/
class Settings
{
private const CACHE_KEY = 'settings.all';
/** @var array<string, mixed>|null */
private ?array $values = null;
public function get(string $key, mixed $default = null): mixed
{
return $this->all()[$key] ?? $default;
}
public function set(string $key, mixed $value): void
{
Setting::query()->updateOrCreate(['key' => $key], ['value' => $value]);
$this->flush();
}
/**
* @param array<string, mixed> $values
*/
public function setMany(array $values): void
{
foreach ($values as $key => $value) {
Setting::query()->updateOrCreate(['key' => $key], ['value' => $value]);
}
$this->flush();
}
/**
* @return array<string, mixed>
*/
public function all(): array
{
return $this->values ??= Cache::rememberForever(
self::CACHE_KEY,
fn () => Setting::query()->pluck('value', 'key')->all(),
);
}
public function flush(): void
{
$this->values = null;
Cache::forget(self::CACHE_KEY);
}
}

13
app/Version.php Normal file
View file

@ -0,0 +1,13 @@
<?php
namespace App;
/**
* Release-Version des Codes (SemVer). Bei jeder Änderung zusammen mit
* CHANGELOG.md anheben – siehe CONTRIBUTING.md. Den installierten
* Commit-Stand verwaltet der Self-Updater getrennt davon.
*/
final class Version
{
public const VERSION = '0.1.0';
}

18
artisan Normal file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env php
<?php
use Illuminate\Foundation\Application;
use Symfony\Component\Console\Input\ArgvInput;
define('LARAVEL_START', microtime(true));
// Register the Composer autoloader...
require __DIR__.'/bootstrap/autoload.php';
// Bootstrap Laravel and handle the command...
/** @var Application $app */
$app = require_once __DIR__.'/bootstrap/app.php';
$status = $app->handleCommand(new ArgvInput);
exit($status);

15
bin/build Executable file
View file

@ -0,0 +1,15 @@
#!/usr/bin/env bash
# Erzeugt die mitversionierten Build-Artefakte für die Auslieferung:
# vendor/ PHP-Pakete ohne Entwicklungsabhängigkeiten
# public/build/ kompiliertes Frontend
# Beim Kunden laufen weder Composer noch Node – siehe CONTRIBUTING.md.
set -euo pipefail
cd "$(dirname "$0")/.."
env -u COMPOSER_VENDOR_DIR composer install --no-dev --optimize-autoloader --no-interaction
npm ci --no-audit --no-fund
npm run build
echo
echo "Fertig. Änderungen an vendor/ und public/build/ bitte mitcommitten."

24
bootstrap/app.php Normal file
View file

@ -0,0 +1,24 @@
<?php
use App\Http\Middleware\HandleInertiaRequests;
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;
return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__.'/../routes/web.php',
commands: __DIR__.'/../routes/console.php',
health: '/up',
)
->withMiddleware(function (Middleware $middleware): void {
$middleware->web(append: [
HandleInertiaRequests::class,
]);
})
->withExceptions(function (Exceptions $exceptions): void {
$exceptions->shouldRenderJsonWhen(
fn (Request $request) => $request->is('api/*') || $request->expectsJson(),
);
})->create();

20
bootstrap/autoload.php Normal file
View file

@ -0,0 +1,20 @@
<?php
/*
| Ausgeliefert wird nur vendor/ – ohne Entwicklungspakete und mitversioniert,
| weil beim Kunden kein Composer läuft. Entwicklungsumgebungen installieren
| alle Pakete (inkl. require-dev) nach vendor-dev/, das nie ausgeliefert wird.
| Siehe CONTRIBUTING.md.
*/
$vendorDir = dirname(__DIR__).'/vendor';
if (is_file(dirname(__DIR__).'/vendor-dev/autoload.php')) {
$vendorDir = dirname(__DIR__).'/vendor-dev';
// Laravels PackageManifest liest die installierten Pakete aus COMPOSER_VENDOR_DIR.
putenv('COMPOSER_VENDOR_DIR='.$vendorDir);
$_ENV['COMPOSER_VENDOR_DIR'] = $_SERVER['COMPOSER_VENDOR_DIR'] = $vendorDir;
}
return require $vendorDir.'/autoload.php';

2
bootstrap/cache/.gitignore vendored Normal file
View file

@ -0,0 +1,2 @@
*
!.gitignore

11
bootstrap/providers.php Normal file
View file

@ -0,0 +1,11 @@
<?php
use App\Providers\AppServiceProvider;
use App\Providers\Filament\AdminPanelProvider;
use App\Providers\FortifyServiceProvider;
return [
AppServiceProvider::class,
AdminPanelProvider::class,
FortifyServiceProvider::class,
];

88
composer.json Normal file
View file

@ -0,0 +1,88 @@
{
"$schema": "https://getcomposer.org/schema.json",
"name": "inhaus/inhaus",
"type": "project",
"description": "Inhaus – modulares Mitarbeiterportal",
"keywords": [
"laravel",
"framework"
],
"license": [
"proprietary"
],
"require": {
"php": "^8.3",
"filament/filament": "^5.8",
"inertiajs/inertia-laravel": "^3.4",
"intervention/image": "^4.3",
"laravel/fortify": "^1.40",
"laravel/framework": "^13.17",
"league/commonmark": "^2.10"
},
"require-dev": {
"fakerphp/faker": "^1.23",
"laravel-lang/common": "^6.8",
"laravel/pail": "^1.2.5",
"laravel/pao": "^1.0.6",
"laravel/pint": "^1.27",
"laravel/tinker": "^3.0",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.6",
"phpunit/phpunit": "^12.5.12"
},
"autoload": {
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
}
},
"autoload-dev": {
"psr-4": {
"Tests\\": "tests/"
}
},
"scripts": {
"setup": [
"@php -r \"file_exists('.env') || copy('.env.example', '.env');\"",
"@php artisan key:generate",
"@php artisan migrate --force"
],
"dev": [
"Composer\\Config::disableProcessTimeout",
"@php artisan dev"
],
"test": [
"@php vendor-dev/bin/phpunit"
],
"post-autoload-dump": [
"Illuminate\\Foundation\\ComposerScripts::postAutoloadDump",
"@php artisan package:discover --ansi",
"@php artisan filament:upgrade"
],
"post-update-cmd": [
"@php artisan vendor:publish --tag=laravel-assets --ansi --force"
],
"pre-package-uninstall": [
"Illuminate\\Foundation\\ComposerScripts::prePackageUninstall"
]
},
"extra": {
"laravel": {
"dont-discover": []
}
},
"config": {
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true,
"allow-plugins": {
"php-http/discovery": true
},
"platform": {
"php": "8.3.0"
}
},
"minimum-stability": "stable",
"prefer-stable": true
}

14179
composer.lock generated Normal file

File diff suppressed because it is too large Load diff

126
config/app.php Normal file
View file

@ -0,0 +1,126 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Application Name
|--------------------------------------------------------------------------
|
| This value is the name of your application, which will be used when the
| framework needs to place the application's name in a notification or
| other UI elements where an application name needs to be displayed.
|
*/
'name' => env('APP_NAME', 'Laravel'),
/*
|--------------------------------------------------------------------------
| Application Environment
|--------------------------------------------------------------------------
|
| This value determines the "environment" your application is currently
| running in. This may determine how you prefer to configure various
| services the application utilizes. Set this in your ".env" file.
|
*/
'env' => env('APP_ENV', 'production'),
/*
|--------------------------------------------------------------------------
| Application Debug Mode
|--------------------------------------------------------------------------
|
| When your application is in debug mode, detailed error messages with
| stack traces will be shown on every error that occurs within your
| application. If disabled, a simple generic error page is shown.
|
*/
'debug' => (bool) env('APP_DEBUG', false),
/*
|--------------------------------------------------------------------------
| Application URL
|--------------------------------------------------------------------------
|
| This URL is used by the console to properly generate URLs when using
| the Artisan command line tool. You should set this to the root of
| the application so that it's available within Artisan commands.
|
*/
'url' => env('APP_URL', 'http://localhost'),
/*
|--------------------------------------------------------------------------
| Application Timezone
|--------------------------------------------------------------------------
|
| Here you may specify the default timezone for your application, which
| will be used by the PHP date and date-time functions. The timezone
| is set to "UTC" by default as it is suitable for most use cases.
|
*/
'timezone' => 'UTC',
/*
|--------------------------------------------------------------------------
| Application Locale Configuration
|--------------------------------------------------------------------------
|
| The application locale determines the default locale that will be used
| by Laravel's translation / localization methods. This option can be
| set to any locale for which you plan to have translation strings.
|
*/
'locale' => env('APP_LOCALE', 'en'),
'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'),
'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'),
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| This key is utilized by Laravel's encryption services and should be set
| to a random, 32 character string to ensure that all encrypted values
| are secure. You should do this prior to deploying the application.
|
*/
'cipher' => 'AES-256-CBC',
'key' => env('APP_KEY'),
'previous_keys' => [
...array_filter(
explode(',', (string) env('APP_PREVIOUS_KEYS', ''))
),
],
/*
|--------------------------------------------------------------------------
| Maintenance Mode Driver
|--------------------------------------------------------------------------
|
| These configuration options determine the driver used to determine and
| manage Laravel's "maintenance mode" status. The "cache" driver will
| allow maintenance mode to be controlled across multiple machines.
|
| Supported drivers: "file", "cache", "array"
|
*/
'maintenance' => [
'driver' => env('APP_MAINTENANCE_DRIVER', 'file'),
'store' => env('APP_MAINTENANCE_STORE', 'database'),
],
];

117
config/auth.php Normal file
View file

@ -0,0 +1,117 @@
<?php
use App\Models\User;
return [
/*
|--------------------------------------------------------------------------
| Authentication Defaults
|--------------------------------------------------------------------------
|
| This option defines the default authentication "guard" and password
| reset "broker" for your application. You may change these values
| as required, but they're a perfect start for most applications.
|
*/
'defaults' => [
'guard' => env('AUTH_GUARD', 'web'),
'passwords' => env('AUTH_PASSWORD_BROKER', 'users'),
],
/*
|--------------------------------------------------------------------------
| Authentication Guards
|--------------------------------------------------------------------------
|
| Next, you may define every authentication guard for your application.
| Of course, a great default configuration has been defined for you
| which utilizes session storage plus the Eloquent user provider.
|
| All authentication guards have a user provider, which defines how the
| users are actually retrieved out of your database or other storage
| system used by the application. Typically, Eloquent is utilized.
|
| Supported: "session"
|
*/
'guards' => [
'web' => [
'driver' => 'session',
'provider' => 'users',
],
],
/*
|--------------------------------------------------------------------------
| User Providers
|--------------------------------------------------------------------------
|
| All authentication guards have a user provider, which defines how the
| users are actually retrieved out of your database or other storage
| system used by the application. Typically, Eloquent is utilized.
|
| If you have multiple user tables or models you may configure multiple
| providers to represent the model / table. These providers may then
| be assigned to any extra authentication guards you have defined.
|
| Supported: "database", "eloquent"
|
*/
'providers' => [
'users' => [
'driver' => 'eloquent',
'model' => env('AUTH_MODEL', User::class),
],
// 'users' => [
// 'driver' => 'database',
// 'table' => 'users',
// ],
],
/*
|--------------------------------------------------------------------------
| Resetting Passwords
|--------------------------------------------------------------------------
|
| These configuration options specify the behavior of Laravel's password
| reset functionality, including the table utilized for token storage
| and the user provider that is invoked to actually retrieve users.
|
| The expiry time is the number of minutes that each reset token will be
| considered valid. This security feature keeps tokens short-lived so
| they have less time to be guessed. You may change this as needed.
|
| The throttle setting is the number of seconds a user must wait before
| generating more password reset tokens. This prevents the user from
| quickly generating a very large amount of password reset tokens.
|
*/
'passwords' => [
'users' => [
'provider' => 'users',
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
'expire' => 60,
'throttle' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Password Confirmation Timeout
|--------------------------------------------------------------------------
|
| Here you may define the number of seconds before a password confirmation
| window expires and users are asked to re-enter their password via the
| confirmation screen. By default, the timeout lasts for three hours.
|
*/
'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
];

136
config/cache.php Normal file
View file

@ -0,0 +1,136 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Cache Store
|--------------------------------------------------------------------------
|
| This option controls the default cache store that will be used by the
| framework. This connection is utilized if another isn't explicitly
| specified when running a cache operation inside the application.
|
*/
'default' => env('CACHE_STORE', 'database'),
/*
|--------------------------------------------------------------------------
| Cache Stores
|--------------------------------------------------------------------------
|
| Here you may define all of the cache "stores" for your application as
| well as their drivers. You may even define multiple stores for the
| same cache driver to group types of items stored in your caches.
|
| Supported drivers: "array", "database", "file", "memcached",
| "redis", "dynamodb", "storage", "octane",
| "session", "failover", "null"
|
*/
'stores' => [
'array' => [
'driver' => 'array',
'serialize' => false,
],
'database' => [
'driver' => 'database',
'connection' => env('DB_CACHE_CONNECTION'),
'table' => env('DB_CACHE_TABLE', 'cache'),
'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'),
'lock_table' => env('DB_CACHE_LOCK_TABLE'),
],
'file' => [
'driver' => 'file',
'path' => storage_path('framework/cache/data'),
'lock_path' => storage_path('framework/cache/data'),
],
'storage' => [
'driver' => 'storage',
'disk' => env('CACHE_STORAGE_DISK'),
'path' => env('CACHE_STORAGE_PATH', 'framework/cache/data'),
],
'memcached' => [
'driver' => 'memcached',
'persistent_id' => env('MEMCACHED_PERSISTENT_ID'),
'sasl' => [
env('MEMCACHED_USERNAME'),
env('MEMCACHED_PASSWORD'),
],
'options' => [
// Memcached::OPT_CONNECT_TIMEOUT => 2000,
],
'servers' => [
[
'host' => env('MEMCACHED_HOST', '127.0.0.1'),
'port' => env('MEMCACHED_PORT', 11211),
'weight' => 100,
],
],
],
'redis' => [
'driver' => 'redis',
'connection' => env('REDIS_CACHE_CONNECTION', 'cache'),
'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'),
],
'dynamodb' => [
'driver' => 'dynamodb',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'table' => env('DYNAMODB_CACHE_TABLE', 'cache'),
'endpoint' => env('DYNAMODB_ENDPOINT'),
],
'octane' => [
'driver' => 'octane',
],
'failover' => [
'driver' => 'failover',
'stores' => [
'database',
'array',
],
],
],
/*
|--------------------------------------------------------------------------
| Cache Key Prefix
|--------------------------------------------------------------------------
|
| When utilizing the APC, database, memcached, Redis, and DynamoDB cache
| stores, there might be other applications using the same cache. For
| that reason, you may prefix every cache key to avoid collisions.
|
*/
'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'),
/*
|--------------------------------------------------------------------------
| Serializable Classes
|--------------------------------------------------------------------------
|
| This value determines the classes that can be unserialized from cache
| storage. By default, no PHP classes will be unserialized from your
| cache to prevent gadget chain attacks if your APP_KEY is leaked.
|
*/
'serializable_classes' => false,
];

184
config/database.php Normal file
View file

@ -0,0 +1,184 @@
<?php
use Illuminate\Support\Str;
use Pdo\Mysql;
return [
/*
|--------------------------------------------------------------------------
| Default Database Connection Name
|--------------------------------------------------------------------------
|
| Here you may specify which of the database connections below you wish
| to use as your default connection for database operations. This is
| the connection which will be utilized unless another connection
| is explicitly specified when you execute a query / statement.
|
*/
'default' => env('DB_CONNECTION', 'sqlite'),
/*
|--------------------------------------------------------------------------
| Database Connections
|--------------------------------------------------------------------------
|
| Below are all of the database connections defined for your application.
| An example configuration is provided for each database system which
| is supported by Laravel. You're free to add / remove connections.
|
*/
'connections' => [
'sqlite' => [
'driver' => 'sqlite',
'url' => env('DB_URL'),
'database' => env('DB_DATABASE', database_path('database.sqlite')),
'prefix' => '',
'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true),
'busy_timeout' => null,
'journal_mode' => null,
'synchronous' => null,
'transaction_mode' => 'DEFERRED',
],
'mysql' => [
'driver' => 'mysql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
Mysql::ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'mariadb' => [
'driver' => 'mariadb',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => env('DB_CHARSET', 'utf8mb4'),
'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'),
'prefix' => '',
'prefix_indexes' => true,
'strict' => true,
'engine' => null,
'options' => extension_loaded('pdo_mysql') ? array_filter([
Mysql::ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
]) : [],
],
'pgsql' => [
'driver' => 'pgsql',
'url' => env('DB_URL'),
'host' => env('DB_HOST', '127.0.0.1'),
'port' => env('DB_PORT', '5432'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
'search_path' => 'public',
'sslmode' => env('DB_SSLMODE', 'prefer'),
],
'sqlsrv' => [
'driver' => 'sqlsrv',
'url' => env('DB_URL'),
'host' => env('DB_HOST', 'localhost'),
'port' => env('DB_PORT', '1433'),
'database' => env('DB_DATABASE', 'laravel'),
'username' => env('DB_USERNAME', 'root'),
'password' => env('DB_PASSWORD', ''),
'charset' => env('DB_CHARSET', 'utf8'),
'prefix' => '',
'prefix_indexes' => true,
// 'encrypt' => env('DB_ENCRYPT', 'yes'),
// 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'),
],
],
/*
|--------------------------------------------------------------------------
| Migration Repository Table
|--------------------------------------------------------------------------
|
| This table keeps track of all the migrations that have already run for
| your application. Using this information, we can determine which of
| the migrations on disk haven't actually been run on the database.
|
*/
'migrations' => [
'table' => 'migrations',
'update_date_on_publish' => true,
],
/*
|--------------------------------------------------------------------------
| Redis Databases
|--------------------------------------------------------------------------
|
| Redis is an open source, fast, and advanced key-value store that also
| provides a richer body of commands than a typical key-value system
| such as Memcached. You may define your connection settings here.
|
*/
'redis' => [
'client' => env('REDIS_CLIENT', 'phpredis'),
'options' => [
'cluster' => env('REDIS_CLUSTER', 'redis'),
'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-database-'),
'persistent' => env('REDIS_PERSISTENT', false),
],
'default' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_DB', '0'),
'max_retries' => env('REDIS_MAX_RETRIES', 3),
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
],
'cache' => [
'url' => env('REDIS_URL'),
'host' => env('REDIS_HOST', '127.0.0.1'),
'username' => env('REDIS_USERNAME'),
'password' => env('REDIS_PASSWORD'),
'port' => env('REDIS_PORT', '6379'),
'database' => env('REDIS_CACHE_DB', '1'),
'max_retries' => env('REDIS_MAX_RETRIES', 3),
'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'),
'backoff_base' => env('REDIS_BACKOFF_BASE', 100),
'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000),
],
],
];

91
config/filesystems.php Normal file
View file

@ -0,0 +1,91 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Filesystem Disk
|--------------------------------------------------------------------------
|
| Here you may specify the default filesystem disk that should be used
| by the framework. The "local" disk, as well as a variety of cloud
| based disks are available to your application for file storage.
|
*/
'default' => env('FILESYSTEM_DISK', 'local'),
/*
|--------------------------------------------------------------------------
| Filesystem Disks
|--------------------------------------------------------------------------
|
| Below you may configure as many filesystem disks as necessary, and you
| may even configure multiple disks for the same driver. Examples for
| most supported storage drivers are configured here for reference.
|
| Supported drivers: "local", "ftp", "sftp", "s3"
|
*/
'disks' => [
'local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
'serve' => true,
'throw' => false,
'report' => false,
],
// Öffentliche Uploads (Profilbilder, Logos) direkt unter public/ – funktioniert
// auch auf Shared Hosting ohne Symlink und wird von Apache ohne PHP ausgeliefert.
'uploads' => [
'driver' => 'local',
'root' => public_path('uploads'),
'url' => rtrim(env('APP_URL', 'http://localhost'), '/').'/uploads',
'visibility' => 'public',
'throw' => false,
'report' => false,
],
'public' => [
'driver' => 'local',
'root' => storage_path('app/public'),
'url' => rtrim(env('APP_URL', 'http://localhost'), '/').'/storage',
'visibility' => 'public',
'throw' => false,
'report' => false,
],
's3' => [
'driver' => 's3',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION'),
'bucket' => env('AWS_BUCKET'),
'url' => env('AWS_URL'),
'endpoint' => env('AWS_ENDPOINT'),
'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
'throw' => false,
'report' => false,
],
],
/*
|--------------------------------------------------------------------------
| Symbolic Links
|--------------------------------------------------------------------------
|
| Here you may configure the symbolic links that will be created when the
| `storage:link` Artisan command is executed. The array keys should be
| the locations of the links and the values should be their targets.
|
*/
'links' => [
public_path('storage') => storage_path('app/public'),
],
];

171
config/fortify.php Normal file
View file

@ -0,0 +1,171 @@
<?php
use Laravel\Fortify\Features;
return [
/*
|--------------------------------------------------------------------------
| Fortify Guard
|--------------------------------------------------------------------------
|
| Here you may specify which authentication guard Fortify will use while
| authenticating users. This value should correspond with one of your
| guards that is already present in your "auth" configuration file.
|
*/
'guard' => 'web',
/*
|--------------------------------------------------------------------------
| Fortify Password Broker
|--------------------------------------------------------------------------
|
| Here you may specify which password broker Fortify can use when a user
| is resetting their password. This configured value should match one
| of your password brokers setup in your "auth" configuration file.
|
*/
'passwords' => 'users',
/*
|--------------------------------------------------------------------------
| Username / Email
|--------------------------------------------------------------------------
|
| This value defines which model attribute should be considered as your
| application's "username" field. Typically, this might be the email
| address of the users but you are free to change this value here.
|
| Out of the box, Fortify expects forgot password and reset password
| requests to have a field named 'email'. If the application uses
| another name for the field you may define it below as needed.
|
*/
'username' => 'email',
'email' => 'email',
/*
|--------------------------------------------------------------------------
| Lowercase Usernames
|--------------------------------------------------------------------------
|
| This value defines whether usernames should be lowercased before saving
| them in the database, as some database system string fields are case
| sensitive. You may disable this for your application if necessary.
|
*/
'lowercase_usernames' => true,
/*
|--------------------------------------------------------------------------
| Home Path
|--------------------------------------------------------------------------
|
| Here you may configure the path where users will get redirected during
| authentication or password reset when the operations are successful
| and the user is authenticated. You are free to change this value.
|
*/
'home' => '/',
/*
|--------------------------------------------------------------------------
| Fortify Routes Prefix / Subdomain
|--------------------------------------------------------------------------
|
| Here you may specify which prefix Fortify will assign to all the routes
| that it registers with the application. If necessary, you may change
| subdomain under which all of the Fortify routes will be available.
|
*/
'prefix' => '',
'domain' => null,
/*
|--------------------------------------------------------------------------
| Fortify Routes Middleware
|--------------------------------------------------------------------------
|
| Here you may specify which middleware Fortify will assign to the routes
| that it registers with the application. If necessary, you may change
| these middleware but typically this provided default is preferred.
|
*/
'middleware' => ['web'],
/*
|--------------------------------------------------------------------------
| Rate Limiting
|--------------------------------------------------------------------------
|
| By default, Fortify will throttle logins to five requests per minute for
| every email and IP address combination. However, if you would like to
| specify a custom rate limiter to call then you may specify it here.
|
*/
'limiters' => [
'login' => 'login',
'two-factor' => 'two-factor',
'passkeys' => 'passkeys',
],
/*
|--------------------------------------------------------------------------
| Register View Routes
|--------------------------------------------------------------------------
|
| Here you may specify if the routes returning views should be disabled as
| you may not need them when building your own application. This may be
| especially true if you're writing a custom single-page application.
|
*/
'views' => true,
/*
|--------------------------------------------------------------------------
| Passkeys
|--------------------------------------------------------------------------
|
| These settings configure Fortify's passkey (WebAuthn) support. Passkeys
| allow users to sign in without needing to remember credentials since
| they use public-key cryptography - making them immune to breaches.
|
*/
'passkeys' => [
'relying_party_id' => parse_url(config('app.url'), PHP_URL_HOST),
'allowed_origins' => [config('app.url')],
'timeout' => 60000,
],
/*
|--------------------------------------------------------------------------
| Features
|--------------------------------------------------------------------------
|
| Some of the Fortify features are optional. You may disable the features
| by removing them from this array. You're free to only remove some of
| these features or you can even remove all of these if you need to.
|
*/
'features' => [
// Konten entstehen über den Admin-Bereich oder später über den Identity Provider –
// eine Selbstregistrierung gibt es bewusst nicht.
Features::resetPasswords(),
Features::updatePasswords(),
],
];

221
config/inertia.php Normal file
View file

@ -0,0 +1,221 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Server Side Rendering
|--------------------------------------------------------------------------
|
| These options configures if and how Inertia uses Server Side Rendering
| to pre-render the initial visits made to your application's pages.
|
| You can specify a custom SSR bundle path, or omit it to let Inertia
| try and automatically detect it for you.
|
| Do note that enabling these options will NOT automatically make SSR work,
| as a separate rendering service needs to be available. To learn more,
| please visit https://inertiajs.com/server-side-rendering
|
*/
'ssr' => [
// Kein SSR: auf Shared Hosting steht kein Node-Prozess zur Verfügung.
'enabled' => (bool) env('INERTIA_SSR_ENABLED', false),
'runtime' => env('INERTIA_SSR_RUNTIME', 'node'),
'ensure_runtime_exists' => (bool) env('INERTIA_SSR_ENSURE_RUNTIME_EXISTS', false),
'url' => env('INERTIA_SSR_URL', 'http://127.0.0.1:13714'),
'hot_url' => env('INERTIA_SSR_HOT_URL'),
'timeout' => env('INERTIA_SSR_TIMEOUT'),
'ensure_bundle_exists' => (bool) env('INERTIA_SSR_ENSURE_BUNDLE_EXISTS', true),
// 'bundle' => base_path('bootstrap/ssr/ssr.mjs'),
/*
|--------------------------------------------------------------------------
| SSR Error Handling
|--------------------------------------------------------------------------
|
| When SSR rendering fails, Inertia gracefully falls back to client-side
| rendering. Set throw_on_error to true to throw an exception instead.
| This is useful for E2E testing where you want SSR errors to fail loudly.
|
| You can also listen for the Inertia\Ssr\SsrRenderFailed event to handle
| failures in your own way (e.g., logging, error tracking service).
|
*/
'throw_on_error' => (bool) env('INERTIA_SSR_THROW_ON_ERROR', false),
],
/*
|--------------------------------------------------------------------------
| Pages
|--------------------------------------------------------------------------
|
| Set `ensure_pages_exist` to true if you want to enforce that Inertia page
| components exist on disk when rendering a page. This is useful for
| catching missing or misnamed components.
|
| The `paths` and `extensions` options define where to look for page
| components and which file extensions to consider.
|
*/
'pages' => [
'ensure_pages_exist' => false,
'paths' => [
resource_path('js/pages'),
],
'extensions' => [
'js',
'jsx',
'svelte',
'ts',
'tsx',
'vue',
],
],
/*
|--------------------------------------------------------------------------
| Testing
|--------------------------------------------------------------------------
|
| When using `assertInertia`, the assertion attempts to locate the
| component as a file relative to the `pages.paths` AND with any of
| the `pages.extensions` specified above.
|
| You can disable this behavior by setting `ensure_pages_exist`
| to false.
|
*/
'testing' => [
'ensure_pages_exist' => true,
],
/*
|--------------------------------------------------------------------------
| Expose Shared Prop Keys
|--------------------------------------------------------------------------
|
| When enabled, each page response includes a `sharedProps` metadata key
| listing the top-level prop keys that were registered via `Inertia::share`.
| The frontend can use this to carry shared props over during instant visits.
|
*/
'expose_shared_prop_keys' => true,
/*
|--------------------------------------------------------------------------
| Previous URL
|--------------------------------------------------------------------------
|
| Laravel's session middleware doesn't store the previous URL and route for
| Inertia visits, as they are sent as AJAX requests. Enable this option to
| store them for client-side visits as well, excluding partial reloads.
|
*/
'store_previous_url' => false,
/*
|--------------------------------------------------------------------------
| History
|--------------------------------------------------------------------------
|
| Enable `encrypt` to encrypt page data before it is stored in the
| browser's history state, preventing sensitive information from
| being accessible after logout. Can also be enabled per-request
| or via the `inertia.encrypt` middleware.
|
*/
'history' => [
'encrypt' => (bool) env('INERTIA_ENCRYPT_HISTORY', false),
],
/*
|--------------------------------------------------------------------------
| DevTools
|--------------------------------------------------------------------------
|
| Records one entry per request to disk so the DevTools Chrome extension may
| read it back over HTTP. Recording is limited to your local environment.
| See https://inertiajs.com/docs/devtools for the gate and storage options.
|
*/
'devtools' => [
'enabled' => env('INERTIA_DEVTOOLS_ENABLED'),
'except' => ['telescope*', 'horizon*', '_inertia/devtools*'],
'storage' => [
'path' => storage_path('inertia-devtools'),
'ttl' => (int) env('INERTIA_DEVTOOLS_TTL_HOURS', 24),
'prune_interval' => (int) env('INERTIA_DEVTOOLS_PRUNE_INTERVAL_SECONDS', 300),
'limit' => (int) env('INERTIA_DEVTOOLS_LIMIT', 100),
],
'middleware' => ['web'],
'gate' => env('INERTIA_DEVTOOLS_GATE'),
'redact' => [
'keys' => [
'password',
'password_confirmation',
'current_password',
'token',
'_token',
'access_token',
'refresh_token',
'secret',
'client_secret',
'api_key',
],
'headers' => [
'cookie',
'set-cookie',
'authorization',
'proxy-authorization',
'x-xsrf-token',
'x-csrf-token',
],
],
],
];

140
config/logging.php Normal file
View file

@ -0,0 +1,140 @@
<?php
use Monolog\Handler\NullHandler;
use Monolog\Handler\StreamHandler;
use Monolog\Handler\SyslogUdpHandler;
use Monolog\Processor\PsrLogMessageProcessor;
return [
/*
|--------------------------------------------------------------------------
| Default Log Channel
|--------------------------------------------------------------------------
|
| This option defines the default log channel that is utilized to write
| messages to your logs. The value provided here should match one of
| the channels present in the list of "channels" configured below.
|
*/
'default' => env('LOG_CHANNEL', 'stack'),
/*
|--------------------------------------------------------------------------
| Deprecations Log Channel
|--------------------------------------------------------------------------
|
| This option controls the log channel that should be used to log warnings
| regarding deprecated PHP and library features. This allows you to get
| your application ready for upcoming major versions of dependencies.
|
*/
'deprecations' => [
'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'),
'trace' => env('LOG_DEPRECATIONS_TRACE', false),
],
/*
|--------------------------------------------------------------------------
| Log Channels
|--------------------------------------------------------------------------
|
| Here you may configure the log channels for your application. Laravel
| utilizes the Monolog PHP logging library, which includes a variety
| of powerful log handlers and formatters that you're free to use.
|
| Available drivers: "single", "daily", "monthly", "slack", "syslog",
| "errorlog", "monolog", "custom", "stack"
|
*/
'channels' => [
'stack' => [
'driver' => 'stack',
'channels' => explode(',', (string) env('LOG_STACK', 'single')),
'ignore_exceptions' => false,
],
'single' => [
'driver' => 'single',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],
'daily' => [
'driver' => 'daily',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'max_files' => env('LOG_DAILY_DAYS', 14),
'replace_placeholders' => true,
],
'monthly' => [
'driver' => 'monthly',
'path' => storage_path('logs/laravel.log'),
'level' => env('LOG_LEVEL', 'debug'),
'max_files' => 3,
'replace_placeholders' => true,
],
'slack' => [
'driver' => 'slack',
'url' => env('LOG_SLACK_WEBHOOK_URL'),
'username' => env('LOG_SLACK_USERNAME', env('APP_NAME', 'Laravel')),
'emoji' => env('LOG_SLACK_EMOJI', ':boom:'),
'level' => env('LOG_LEVEL', 'critical'),
'replace_placeholders' => true,
],
'papertrail' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class),
'handler_with' => [
'host' => env('PAPERTRAIL_URL'),
'port' => env('PAPERTRAIL_PORT'),
'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'),
],
'processors' => [PsrLogMessageProcessor::class],
],
'stderr' => [
'driver' => 'monolog',
'level' => env('LOG_LEVEL', 'debug'),
'handler' => StreamHandler::class,
'handler_with' => [
'stream' => 'php://stderr',
],
'formatter' => env('LOG_STDERR_FORMATTER'),
'processors' => [PsrLogMessageProcessor::class],
],
'syslog' => [
'driver' => 'syslog',
'level' => env('LOG_LEVEL', 'debug'),
'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER),
'replace_placeholders' => true,
],
'errorlog' => [
'driver' => 'errorlog',
'level' => env('LOG_LEVEL', 'debug'),
'replace_placeholders' => true,
],
'null' => [
'driver' => 'monolog',
'handler' => NullHandler::class,
],
'emergency' => [
'path' => storage_path('logs/laravel.log'),
],
],
];

118
config/mail.php Normal file
View file

@ -0,0 +1,118 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Mailer
|--------------------------------------------------------------------------
|
| This option controls the default mailer that is used to send all email
| messages unless another mailer is explicitly specified when sending
| the message. All additional mailers can be configured within the
| "mailers" array. Examples of each type of mailer are provided.
|
*/
'default' => env('MAIL_MAILER', 'log'),
/*
|--------------------------------------------------------------------------
| Mailer Configurations
|--------------------------------------------------------------------------
|
| Here you may configure all of the mailers used by your application plus
| their respective settings. Several examples have been configured for
| you and you are free to add your own as your application requires.
|
| Laravel supports a variety of mail "transport" drivers that can be used
| when delivering an email. You may specify which one you're using for
| your mailers below. You may also add additional mailers if needed.
|
| Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2",
| "postmark", "resend", "log", "array",
| "failover", "roundrobin"
|
*/
'mailers' => [
'smtp' => [
'transport' => 'smtp',
'scheme' => env('MAIL_SCHEME'),
'url' => env('MAIL_URL'),
'host' => env('MAIL_HOST', '127.0.0.1'),
'port' => env('MAIL_PORT', 2525),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'timeout' => null,
'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)),
],
'ses' => [
'transport' => 'ses',
],
'postmark' => [
'transport' => 'postmark',
// 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'),
// 'client' => [
// 'timeout' => 5,
// ],
],
'resend' => [
'transport' => 'resend',
],
'sendmail' => [
'transport' => 'sendmail',
'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'),
],
'log' => [
'transport' => 'log',
'channel' => env('MAIL_LOG_CHANNEL'),
],
'array' => [
'transport' => 'array',
],
'failover' => [
'transport' => 'failover',
'mailers' => [
'smtp',
'log',
],
'retry_after' => 60,
],
'roundrobin' => [
'transport' => 'roundrobin',
'mailers' => [
'ses',
'postmark',
],
'retry_after' => 60,
],
],
/*
|--------------------------------------------------------------------------
| Global "From" Address
|--------------------------------------------------------------------------
|
| You may wish for all emails sent by your application to be sent from
| the same address. Here you may specify a name and address that is
| used globally for all emails that are sent by your application.
|
*/
'from' => [
'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'),
'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Laravel')),
],
];

129
config/queue.php Normal file
View file

@ -0,0 +1,129 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Default Queue Connection Name
|--------------------------------------------------------------------------
|
| Laravel's queue supports a variety of backends via a single, unified
| API, giving you convenient access to each backend using identical
| syntax for each. The default queue connection is defined below.
|
*/
'default' => env('QUEUE_CONNECTION', 'database'),
/*
|--------------------------------------------------------------------------
| Queue Connections
|--------------------------------------------------------------------------
|
| Here you may configure the connection options for every queue backend
| used by your application. An example configuration is provided for
| each backend supported by Laravel. You're also free to add more.
|
| Drivers: "sync", "database", "beanstalkd", "sqs", "redis",
| "deferred", "background", "failover", "null"
|
*/
'connections' => [
'sync' => [
'driver' => 'sync',
],
'database' => [
'driver' => 'database',
'connection' => env('DB_QUEUE_CONNECTION'),
'table' => env('DB_QUEUE_TABLE', 'jobs'),
'queue' => env('DB_QUEUE', 'default'),
'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90),
'after_commit' => false,
],
'beanstalkd' => [
'driver' => 'beanstalkd',
'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'),
'queue' => env('BEANSTALKD_QUEUE', 'default'),
'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90),
'block_for' => 0,
'after_commit' => false,
],
'sqs' => [
'driver' => 'sqs',
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'),
'queue' => env('SQS_QUEUE', 'default'),
'suffix' => env('SQS_SUFFIX'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
'after_commit' => false,
],
'redis' => [
'driver' => 'redis',
'connection' => env('REDIS_QUEUE_CONNECTION', 'default'),
'queue' => env('REDIS_QUEUE', 'default'),
'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90),
'block_for' => null,
'after_commit' => false,
],
'deferred' => [
'driver' => 'deferred',
],
'background' => [
'driver' => 'background',
],
'failover' => [
'driver' => 'failover',
'connections' => [
'database',
'deferred',
],
],
],
/*
|--------------------------------------------------------------------------
| Job Batching
|--------------------------------------------------------------------------
|
| The following options configure the database and table that store job
| batching information. These options can be updated to any database
| connection and table which has been defined by your application.
|
*/
'batching' => [
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'job_batches',
],
/*
|--------------------------------------------------------------------------
| Failed Queue Jobs
|--------------------------------------------------------------------------
|
| These options configure the behavior of failed queue job logging so you
| can control how and where failed jobs are stored. Laravel ships with
| support for storing failed jobs in a simple file or in a database.
|
| Supported drivers: "database-uuids", "dynamodb", "file", "null"
|
*/
'failed' => [
'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'),
'database' => env('DB_CONNECTION', 'sqlite'),
'table' => 'failed_jobs',
],
];

38
config/services.php Normal file
View file

@ -0,0 +1,38 @@
<?php
return [
/*
|--------------------------------------------------------------------------
| Third Party Services
|--------------------------------------------------------------------------
|
| This file is for storing the credentials for third party services such
| as Resend, Postmark, AWS, and more. This file provides the de facto
| location for this type of information, allowing packages to have
| a conventional file to locate the various service credentials.
|
*/
'postmark' => [
'key' => env('POSTMARK_API_KEY'),
],
'resend' => [
'key' => env('RESEND_API_KEY'),
],
'ses' => [
'key' => env('AWS_ACCESS_KEY_ID'),
'secret' => env('AWS_SECRET_ACCESS_KEY'),
'region' => env('AWS_DEFAULT_REGION', 'us-east-1'),
],
'slack' => [
'notifications' => [
'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'),
'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'),
],
],
];

233
config/session.php Normal file
View file

@ -0,0 +1,233 @@
<?php
use Illuminate\Support\Str;
return [
/*
|--------------------------------------------------------------------------
| Default Session Driver
|--------------------------------------------------------------------------
|
| This option determines the default session driver that is utilized for
| incoming requests. Laravel supports a variety of storage options to
| persist session data. Database storage is a great default choice.
|
| Supported: "file", "cookie", "database", "memcached",
| "redis", "dynamodb", "array"
|
*/
'driver' => env('SESSION_DRIVER', 'database'),
/*
|--------------------------------------------------------------------------
| Session Lifetime
|--------------------------------------------------------------------------
|
| Here you may specify the number of minutes that you wish the session
| to be allowed to remain idle before it expires. If you want them
| to expire immediately when the browser is closed then you may
| indicate that via the expire_on_close configuration option.
|
*/
'lifetime' => (int) env('SESSION_LIFETIME', 120),
'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false),
/*
|--------------------------------------------------------------------------
| Session Encryption
|--------------------------------------------------------------------------
|
| This option allows you to easily specify that all of your session data
| should be encrypted before it's stored. All encryption is performed
| automatically by Laravel and you may use the session like normal.
|
*/
'encrypt' => env('SESSION_ENCRYPT', false),
/*
|--------------------------------------------------------------------------
| Session File Location
|--------------------------------------------------------------------------
|
| When utilizing the "file" session driver, the session files are placed
| on disk. The default storage location is defined here; however, you
| are free to provide another location where they should be stored.
|
*/
'files' => storage_path('framework/sessions'),
/*
|--------------------------------------------------------------------------
| Session Database Connection
|--------------------------------------------------------------------------
|
| When using the "database" or "redis" session drivers, you may specify a
| connection that should be used to manage these sessions. This should
| correspond to a connection in your database configuration options.
|
*/
'connection' => env('SESSION_CONNECTION'),
/*
|--------------------------------------------------------------------------
| Session Database Table
|--------------------------------------------------------------------------
|
| When using the "database" session driver, you may specify the table to
| be used to store sessions. Of course, a sensible default is defined
| for you; however, you're welcome to change this to another table.
|
*/
'table' => env('SESSION_TABLE', 'sessions'),
/*
|--------------------------------------------------------------------------
| Session Cache Store
|--------------------------------------------------------------------------
|
| When using one of the framework's cache driven session backends, you may
| define the cache store which should be used to store the session data
| between requests. This must match one of your defined cache stores.
|
| Affects: "dynamodb", "memcached", "redis"
|
*/
'store' => env('SESSION_STORE'),
/*
|--------------------------------------------------------------------------
| Session Sweeping Lottery
|--------------------------------------------------------------------------
|
| Some session drivers must manually sweep their storage location to get
| rid of old sessions from storage. Here are the chances that it will
| happen on a given request. By default, the odds are 2 out of 100.
|
*/
'lottery' => [2, 100],
/*
|--------------------------------------------------------------------------
| Session Cookie Name
|--------------------------------------------------------------------------
|
| Here you may change the name of the session cookie that is created by
| the framework. Typically, you should not need to change this value
| since doing so does not grant a meaningful security improvement.
|
*/
'cookie' => env(
'SESSION_COOKIE',
Str::slug((string) env('APP_NAME', 'laravel')).'-session'
),
/*
|--------------------------------------------------------------------------
| Session Cookie Path
|--------------------------------------------------------------------------
|
| The session cookie path determines the path for which the cookie will
| be regarded as available. Typically, this will be the root path of
| your application, but you're free to change this when necessary.
|
*/
'path' => env('SESSION_PATH', '/'),
/*
|--------------------------------------------------------------------------
| Session Cookie Domain
|--------------------------------------------------------------------------
|
| This value determines the domain and subdomains the session cookie is
| available to. By default, the cookie will be available to the root
| domain without subdomains. Typically, this shouldn't be changed.
|
*/
'domain' => env('SESSION_DOMAIN'),
/*
|--------------------------------------------------------------------------
| HTTPS Only Cookies
|--------------------------------------------------------------------------
|
| By setting this option to true, session cookies will only be sent back
| to the server if the browser has a HTTPS connection. This will keep
| the cookie from being sent to you when it can't be done securely.
|
*/
'secure' => env('SESSION_SECURE_COOKIE'),
/*
|--------------------------------------------------------------------------
| HTTP Access Only
|--------------------------------------------------------------------------
|
| Setting this value to true will prevent JavaScript from accessing the
| value of the cookie and the cookie will only be accessible through
| the HTTP protocol. It's unlikely you should disable this option.
|
*/
'http_only' => env('SESSION_HTTP_ONLY', true),
/*
|--------------------------------------------------------------------------
| Same-Site Cookies
|--------------------------------------------------------------------------
|
| This option determines how your cookies behave when cross-site requests
| take place, and can be used to mitigate CSRF attacks. By default, we
| will set this value to "lax" to permit secure cross-site requests.
|
| See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value
|
| Supported: "lax", "strict", "none", null
|
*/
'same_site' => env('SESSION_SAME_SITE', 'lax'),
/*
|--------------------------------------------------------------------------
| Partitioned Cookies
|--------------------------------------------------------------------------
|
| Setting this value to true will tie the cookie to the top-level site for
| a cross-site context. Partitioned cookies are accepted by the browser
| when flagged "secure" and the Same-Site attribute is set to "none".
|
*/
'partitioned' => env('SESSION_PARTITIONED_COOKIE', false),
/*
|--------------------------------------------------------------------------
| Session Serialization
|--------------------------------------------------------------------------
|
| This value controls the serialization strategy for session data, which
| is JSON by default. Setting this to "php" allows the storage of PHP
| objects in the session but can make an application vulnerable to
| "gadget chain" serialization attacks if the APP_KEY is leaked.
|
| Supported: "json", "php"
|
*/
'serialization' => 'json',
];

1
database/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.sqlite*

View file

@ -0,0 +1,53 @@
<?php
namespace Database\Factories;
use App\Models\User;
use Illuminate\Database\Eloquent\Factories\Factory;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Str;
/**
* @extends Factory<User>
*/
class UserFactory extends Factory
{
protected static ?string $password;
public function definition(): array
{
$firstName = fake()->firstName();
$lastName = fake()->lastName();
return [
'first_name' => $firstName,
'last_name' => $lastName,
'name' => "{$firstName} {$lastName}",
'email' => fake()->unique()->safeEmail(),
'email_verified_at' => now(),
'password' => static::$password ??= Hash::make('password'),
'remember_token' => Str::random(10),
'job_title' => fake()->jobTitle(),
'department' => fake()->randomElement(['Verwaltung', 'Pflege', 'IT', 'Personal', 'Buchhaltung', 'Technik']),
'location' => fake()->city(),
'phone' => fake()->phoneNumber(),
'is_admin' => false,
'is_active' => true,
];
}
public function admin(): static
{
return $this->state(fn () => ['is_admin' => true]);
}
public function inactive(): static
{
return $this->state(fn () => ['is_active' => false]);
}
public function unverified(): static
{
return $this->state(fn () => ['email_verified_at' => null]);
}
}

View file

@ -0,0 +1,68 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('users', function (Blueprint $table) {
$table->id();
$table->string('name');
$table->string('first_name')->nullable();
$table->string('last_name')->nullable();
$table->string('email')->unique();
$table->timestamp('email_verified_at')->nullable();
$table->string('password')->nullable();
$table->rememberToken();
// Profil
$table->string('job_title')->nullable();
$table->string('department')->nullable();
$table->string('location')->nullable();
$table->string('phone', 50)->nullable();
$table->string('mobile', 50)->nullable();
$table->text('about')->nullable();
$table->string('avatar_path')->nullable();
// Konto
$table->boolean('is_admin')->default(false);
$table->boolean('is_active')->default(true);
$table->string('theme', 10)->default('system');
$table->timestamp('last_login_at')->nullable();
$table->timestamps();
$table->index(['is_active', 'last_name', 'first_name']);
});
Schema::create('password_reset_tokens', function (Blueprint $table) {
$table->string('email')->primary();
$table->string('token');
$table->timestamp('created_at')->nullable();
});
Schema::create('sessions', function (Blueprint $table) {
$table->string('id')->primary();
$table->foreignId('user_id')->nullable()->index();
$table->string('ip_address', 45)->nullable();
$table->text('user_agent')->nullable();
$table->longText('payload');
$table->integer('last_activity')->index();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('users');
Schema::dropIfExists('password_reset_tokens');
Schema::dropIfExists('sessions');
}
};

View file

@ -0,0 +1,35 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('cache', function (Blueprint $table) {
$table->string('key')->primary();
$table->mediumText('value');
$table->bigInteger('expiration')->index();
});
Schema::create('cache_locks', function (Blueprint $table) {
$table->string('key')->primary();
$table->string('owner');
$table->bigInteger('expiration')->index();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('cache');
Schema::dropIfExists('cache_locks');
}
};

View file

@ -0,0 +1,59 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('jobs', function (Blueprint $table) {
$table->id();
$table->string('queue')->index();
$table->longText('payload');
$table->unsignedSmallInteger('attempts');
$table->unsignedInteger('reserved_at')->nullable();
$table->unsignedInteger('available_at');
$table->unsignedInteger('created_at');
});
Schema::create('job_batches', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('name');
$table->integer('total_jobs');
$table->integer('pending_jobs');
$table->integer('failed_jobs');
$table->longText('failed_job_ids');
$table->mediumText('options')->nullable();
$table->integer('cancelled_at')->nullable();
$table->integer('created_at');
$table->integer('finished_at')->nullable();
});
Schema::create('failed_jobs', function (Blueprint $table) {
$table->id();
$table->string('uuid')->unique();
$table->string('connection');
$table->string('queue');
$table->longText('payload');
$table->longText('exception');
$table->timestamp('failed_at')->useCurrent();
$table->index(['connection', 'queue', 'failed_at']);
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('jobs');
Schema::dropIfExists('job_batches');
Schema::dropIfExists('failed_jobs');
}
};

View file

@ -0,0 +1,22 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
Schema::create('settings', function (Blueprint $table) {
$table->string('key')->primary();
$table->json('value')->nullable();
$table->timestamps();
});
}
public function down(): void
{
Schema::dropIfExists('settings');
}
};

View file

@ -0,0 +1,25 @@
<?php
namespace Database\Seeders;
use App\Models\User;
use Illuminate\Database\Seeder;
/**
* Nur für Entwicklung und Demo – Produktivinstallationen legen den ersten
* Administrator über den Web-Installer an (Phase 1).
*/
class DatabaseSeeder extends Seeder
{
public function run(): void
{
User::factory()->admin()->create([
'first_name' => 'Ada',
'last_name' => 'Admin',
'email' => 'admin@example.com',
'job_title' => 'Administration',
]);
User::factory(25)->create();
}
}

40
docker-compose.yml Normal file
View file

@ -0,0 +1,40 @@
# Lokale Entwicklungsumgebung: http://localhost:8080
# docker compose up -d
# docker compose exec app composer install
# docker compose exec app php artisan migrate --seed
services:
app:
build: docker/app
ports:
- "8080:80"
volumes:
- .:/var/www/html
environment:
DB_HOST: db
DB_PORT: 3306
DB_DATABASE: inhaus
DB_USERNAME: inhaus
DB_PASSWORD: inhaus
APP_URL: http://localhost:8080
depends_on:
db:
condition: service_healthy
db:
image: mysql:8.4
environment:
MYSQL_DATABASE: inhaus
MYSQL_USER: inhaus
MYSQL_PASSWORD: inhaus
MYSQL_ROOT_PASSWORD: root
command: --innodb-buffer-pool-size=128M
volumes:
- db:/var/lib/mysql
- ./docker/db/init.sql:/docker-entrypoint-initdb.d/init.sql:ro
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "-uroot", "-proot"]
interval: 5s
retries: 20
volumes:
db:

19
docker/app/Dockerfile Normal file
View file

@ -0,0 +1,19 @@
# Entwicklungsumgebung – entspricht einem typischen Shared-Hosting-Stack:
# Apache mit .htaccess, PHP 8.3, keine weiteren Dienste.
FROM php:8.3-apache
RUN apt-get update \
&& apt-get install -y --no-install-recommends libicu-dev libzip-dev libpng-dev libjpeg62-turbo-dev libwebp-dev libfreetype6-dev unzip git \
&& docker-php-ext-configure gd --with-jpeg --with-webp --with-freetype \
&& docker-php-ext-install -j2 intl zip gd pdo_mysql bcmath exif opcache \
&& a2enmod rewrite headers expires \
&& rm -rf /var/lib/apt/lists/*
ENV APACHE_DOCUMENT_ROOT=/var/www/html/public
RUN sed -ri -e 's!/var/www/html!${APACHE_DOCUMENT_ROOT}!g' /etc/apache2/sites-available/*.conf \
&& sed -ri -e 's!AllowOverride None!AllowOverride All!g' /etc/apache2/apache2.conf
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
# Entwicklungspakete landen in vendor-dev/, das mitversionierte vendor/ bleibt unberührt.
ENV COMPOSER_VENDOR_DIR=vendor-dev

3
docker/db/init.sql Normal file
View file

@ -0,0 +1,3 @@
-- Zusätzliche Datenbank für die Tests.
CREATE DATABASE IF NOT EXISTS inhaus_test CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;
GRANT ALL ON inhaus_test.* TO 'inhaus'@'%';

View file

@ -213,8 +213,9 @@ Hier nur die Übertragung auf Laravel und projektspezifische Entscheidungen.
- Ablauf für **jede** Änderung (in `CONTRIBUTING.md` dokumentiert):
1. `CHANGELOG.md` ergänzen
2. `VERSION` anheben (Patch = Fix, Minor = Funktion)
3. Tests grün, Frontend-Build + `composer install --no-dev` → Assets und
`vendor/` mitcommitten
3. Tests grün, `bin/build` (Frontend-Build + `composer install --no-dev`) →
Assets und `vendor/` mitcommitten. Entwicklungspakete liegen getrennt in
`vendor-dev/` (siehe `CONTRIBUTING.md`)
4. Merge in den ausgelieferten Branch
- CI prüft: CHANGELOG-Abschnitt passt zu `VERSION`, Build-Artefakte sind aktuell.
@ -459,7 +460,8 @@ Kantinenplan, Ideenbox, Urlaubsanträge.
Audit-Log für Admin-Aktionen, Löschkonzept, Datenexport; Datenschutzhinweise
für Update-Prüfung und Rückmeldungen gemäß Spezifikationen.
- Mehrsprachigkeit DE/EN; UI-Texte mit echten Umlauten, Schlüssel/Routen ASCII.
- Tests: Pest, Vitest, Playwright, k6.
- Tests: PHPUnit (Pest scheidet aus, weil es fest `vendor/autoload.php` lädt –
dort liegen nur die Produktionspakete), Vitest, Playwright, k6.
- CI-Matrix: PHP 8.3/8.4 × MySQL 8.0/8.4 × MariaDB 10.6/11.
---

252
lang/de.json Normal file
View file

@ -0,0 +1,252 @@
{
"(and :count more error)": "(und :count weiterer Fehler)",
"(and :count more errors)": "(und :count weiterer Fehler)|(und :count weitere Fehler)|(und :count weitere Fehler)",
"A decryption key is required.": "Ein Entschlüsselungsschlüssel ist nötig.",
"A Timeout Occurred": "Eine Zeitüberschreitung ist aufgetreten",
"Accept": "Akzeptieren",
"Accepted": "Akzeptiert",
"Action": "Aktion",
"Actions": "Aktionen",
"Add": "Hinzufügen",
"Add :name": ":name hinzufügen",
"Admin": "Administrator",
"Agree": "Zustimmen",
"All rights reserved.": "Alle Rechte vorbehalten.",
"Already Reported": "Bereits gemeldet",
"Archive": "Archiv",
"Assign": "Zuordnen",
"Associate": "Assoziieren",
"Attach": "Anhängen",
"Bad Gateway": "Fehlerhaftes Gateway",
"Bad Request": "Ungültige Anfrage",
"Bandwidth Limit Exceeded": "Bandbreitenlimit überschritten",
"Browse": "Durchsuchen",
"Cancel": "Abbrechen",
"Choose": "Wählen Sie",
"Choose :name": "Wählen Sie :name",
"Choose File": "Datei wählen",
"Choose Image": "Bild wählen",
"Click to copy": "Klicken Sie zum Kopieren",
"Client Closed Request": "Client hat die Anfrage geschlossen",
"Close": "Schließen",
"Collapse": "Zusammenklappen",
"Collapse All": "Alle zusammenklappen",
"Comment": "Kommentar",
"Confirm": "Bestätigen",
"Conflict": "Konflikt",
"Connect": "Verbinden",
"Connection Closed Without Response": "Verbindung ohne Antwort getrennt",
"Connection Timed Out": "Verbindungszeit überschritten",
"Continue": "Weiter",
"Create": "Erstellen",
"Create :name": ":name erstellen",
"Created": "Erstellt",
"Delete": "Löschen",
"Delete :name": ":name löschen",
"Detach": "Trennen",
"Details": "Details",
"Disable": "Deaktivieren",
"Discard": "Verwerfen",
"Done": "Erledigt",
"Down": "Runter",
"Duplicate": "Duplizieren",
"Duplicate :name": ":name duplizieren",
"Edit": "Bearbeiten",
"Edit :name": ":name bearbeiten",
"Enable": "Aktivieren",
"Encrypted environment file already exists.": "Verschlüsselte Umgebungsdatei ist bereits vorhanden.",
"Encrypted environment file not found.": "Verschlüsselte Umgebungsdatei nicht gefunden.",
"Environment file already exists.": "Umgebungsdatei ist bereits vorhanden.",
"Environment file not found.": "Umgebungsdatei nicht gefunden.",
"errors": "Fehler",
"Expand": "Erweitern",
"Expand All": "Alle erweitern",
"Expectation Failed": "Erwartung gescheitert",
"Explanation": "Erläuterung",
"Export": "Exportieren",
"Export :name": ":name exportieren",
"Failed Dependency": "Fehlgeschlagene Abhängigkeit",
"File": "Datei",
"Files": "Dateien",
"Forbidden": "Verboten",
"Found": "Gefunden",
"Gateway Timeout": "Gateway-Zeitüberschreitung",
"Go Home": "Zur Startseite",
"Go to page :page": "Gehe zur Seite :page",
"Gone": "Nicht mehr verfügbar",
"Hello!": "Hallo!",
"Hide": "Verstecken",
"Hide :name": ":name ausblenden",
"Home": "Startseite",
"HTTP Version Not Supported": "HTTP Version nicht unterstützt",
"I'm a teapot": "Ich bin eine Teekanne",
"If you did not create an account, no further action is required.": "Wenn Sie kein Konto erstellt haben, sind keine weiteren Handlungen nötig.",
"If you did not request a password reset, no further action is required.": "Wenn Sie kein Zurücksetzen des Passworts beantragt haben, sind keine weiteren Handlungen nötig.",
"If you're having trouble clicking the \":actionText\" button, copy and paste the URL below\ninto your web browser:": "Sollten Sie Schwierigkeiten haben, die Schaltfläche \":actionText\" zu klicken, kopieren Sie den nachfolgenden Link\n in Ihre Adresszeile des Browsers.",
"IM Used": "IM verwendet",
"Image": "Bild",
"Impersonate": "Imitieren",
"Impersonation": "Identitätswechsel",
"Import": "Importieren",
"Import :name": "Importieren Sie :name",
"Insufficient Storage": "Nicht genügend Speicherplatz",
"Internal Server Error": "Interner Serverfehler",
"Introduction": "Einführung",
"Invalid credential format.": "Ungültiges Format der Anmeldedaten.",
"Invalid filename.": "Ungültiger Dateiname.",
"Invalid JSON was returned from the route.": "Von der Route wurde ein ungültiger JSON-Code zurückgegeben.",
"Invalid SSL Certificate": "Ungültiges SSL-Zertifikat",
"Length Required": "Längenangabe erforderlich",
"Like": "Wie",
"Load": "Belastung",
"Localize": "Lokalisieren",
"Location": "Standort",
"Locked": "Gesperrt",
"Log In": "Einloggen",
"Log Out": "Abmelden",
"Login": "Anmelden",
"Logout": "Abmelden",
"Loop Detected": "Endlosschleife erkannt",
"Maintenance Mode": "Wartungsmodus",
"Method Not Allowed": "Methode nicht erlaubt",
"Misdirected Request": "Fehlgeleitete Anfrage",
"Moved Permanently": "Permanent verschoben",
"Multi-Status": "Multistatus",
"Multiple Choices": "Mehrere Auswahlmöglichkeiten",
"Network Authentication Required": "Netzwerkauthentifizierung erforderlich",
"Network Connect Timeout Error": "Zeitüberschreitungsfehler bei Netzwerkverbindung",
"Network Read Timeout Error": "Zeitüberschreitungsfehler beim Lesen des Netzwerks",
"New": "Neu",
"New :name": "Neu :name",
"No": "Nein",
"No Content": "Kein Inhalt",
"Non-Authoritative Information": "Nicht maßgebende Informationen",
"Not Acceptable": "Nicht akzeptierbar",
"Not Extended": "Nicht erweitert",
"Not Found": "Nicht gefunden",
"Not Implemented": "Nicht implementiert",
"Not Modified": "Nicht modifiziert",
"of": "von",
"OK": "OK",
"Open": "Offen",
"Open in a current window": "In einem aktuellen Fenster öffnen",
"Open in a new window": "In einem neuen Fenster öffnen",
"Open in a parent frame": "In einem übergeordneten Frame öffnen",
"Open in the topmost frame": "Im obersten Rahmen öffnen",
"Open on the website": "Auf der Website öffnen",
"Origin Is Unreachable": "Quelle ist nicht erreichbar",
"Page Expired": "Seite abgelaufen",
"Pagination Navigation": "Seiten-Navigation",
"Partial Content": "Teilinhalt",
"Passkey not recognized. It may have been removed from your account.": "Passkey wurde nicht erkannt. Er wurde möglicherweise von Ihrem Konto entfernt.",
"Passkey registration session expired. Please try again.": "Die Sitzung zur Passkey-Registrierung ist abgelaufen. Bitte versuchen Sie es erneut.",
"Passkey verification session expired. Please try again.": "Die Sitzung zur Passkey-Bestätigung ist abgelaufen. Bitte versuchen Sie es erneut.",
"Payload Too Large": "Nutzlast zu groß",
"Payment Required": "Zahlung erforderlich",
"Permanent Redirect": "Permanente Weiterleitung",
"Please click the button below to verify your email address.": "Bitte klicken Sie auf die Schaltfläche, um Ihre E-Mail-Adresse zu bestätigen.",
"Precondition Failed": "Vorbedingung fehlgeschlagen",
"Precondition Required": "Voraussetzung erforderlich",
"Preview": "Vorschau",
"Price": "Preis",
"Processing": "In Bearbeitung",
"Proxy Authentication Required": "Proxy-Authentifizierung erforderlich",
"Railgun Error": "Railgun-Fehler",
"Range Not Satisfiable": "Bereich nicht erfüllbar",
"Record": "Aufzeichnen",
"Regards,": "Mit freundlichen Grüßen,",
"Register": "Registrieren",
"Request Header Fields Too Large": "Anfrage-Header-Felder zu groß",
"Request Timeout": "Zeitüberschreitung der Anfrage",
"Reset Content": "Inhalt zurücksetzen",
"Reset Password": "Passwort zurücksetzen",
"Reset your password": "Setzen Sie Ihr Passwort zurück",
"Restore": "Wiederherstellen",
"Restore :name": ":name wiederherstellen",
"results": "Ergebnissen",
"Retry With": "Wiederhole mit",
"Save": "Speichern",
"Save & Close": "Speichern und schließen",
"Save & Return": "Speichern und zurückgeben",
"Save :name": "Sparen Sie :name",
"Search": "Suchen",
"Search :name": "Suche :name",
"See Other": "Siehe andere Seite",
"Select": "Wählen Sie",
"Select All": "Wählen Sie Alle",
"Send": "Schicken",
"Server Error": "Interner Fehler",
"Service Unavailable": "Service nicht verfügbar",
"Session Has Expired": "Sitzung ist abgelaufen",
"Settings": "Einstellungen",
"Show": "Zeigen",
"Show :name": ":name anzeigen",
"Show All": "Zeige alles",
"Showing": "Zeige",
"Sign In": "Anmelden",
"Solve": "Lösen",
"SSL Handshake Failed": "SSL Handshake fehlgeschlagen",
"Start": "Starten",
"Stop": "Stoppen",
"Submit": "Einreichen",
"Subscribe": "Abonnieren",
"Switch": "Wechseln",
"Switch To Role": "Zur Rolle wechseln",
"Switching Protocols": "Protokollwechsel",
"Tag": "Stichwort",
"Tags": "Stichworte",
"Temporary Redirect": "Temporäre Weiterleitung",
"The :attribute must be at least :length characters and contain at least one number.": ":Attribute muss aus mindestens :length Zeichen bestehen und mindestens eine Zahl enthalten.",
"The :attribute must be at least :length characters and contain at least one special character and one number.": ":Attribute muss mindestens :length Zeichen lang sein und mindestens ein Sonderzeichen und eine Zahl enthalten.",
"The :attribute must be at least :length characters and contain at least one special character.": ":Attribute muss aus mindestens :length Zeichen bestehen und mindestens ein Sonderzeichen enthalten.",
"The :attribute must be at least :length characters and contain at least one uppercase character and one number.": ":Attribute muss aus mindestens :length Zeichen bestehen und mindestens einen Großbuchstaben und eine Zahl enthalten.",
"The :attribute must be at least :length characters and contain at least one uppercase character and one special character.": ":Attribute muss aus mindestens :length Zeichen bestehen und mindestens einen Großbuchstaben und ein Sonderzeichen enthalten.",
"The :attribute must be at least :length characters and contain at least one uppercase character, one number, and one special character.": ":Attribute muss aus mindestens :length Zeichen bestehen und mindestens einen Großbuchstaben, eine Zahl und ein Sonderzeichen enthalten.",
"The :attribute must be at least :length characters and contain at least one uppercase character.": ":Attribute muss aus mindestens :length Zeichen bestehen und mindestens einen Großbuchstaben enthalten.",
"The :attribute must be at least :length characters.": ":Attribute muss aus mindestens :length Zeichen bestehen.",
"The existing encrypted environment file is not in readable format. Use --force to overwrite it.": "Die vorhandene verschlüsselte Umgebungsdatei liegt nicht in einem lesbaren Format vor. Verwenden Sie --force, um sie zu überschreiben.",
"The existing encryption key is required to update the encrypted environment file.": "Der vorhandene Verschlüsselungsschlüssel wird benötigt, um die verschlüsselte Umgebungsdatei zu aktualisieren.",
"The given data was invalid.": "Die gegebenen Daten waren ungültig.",
"The provided password does not match your current password.": "Das angegebene Passwort stimmt nicht mit Ihrem aktuellen Passwort überein.",
"The provided password was incorrect.": "Das angegebene Passwort war falsch.",
"The provided two factor authentication code was invalid.": "Der angegebene Zwei-Faktor-Authentifizierungscode war ungültig.",
"The provided two factor recovery code was invalid.": "Der angegebene Zwei-Faktor-Wiederherstellungscode war ungültig.",
"The response is not a streamed response.": "Die Antwort ist keine gestreamte Antwort.",
"The response is not a view.": "Die Antwort ist keine Ansicht.",
"This action is unauthorized.": "Diese Aktion ist nicht autorisiert.",
"This password reset link will expire in :count minutes.": "Dieser Link zum Zurücksetzen des Passworts läuft in :count Minuten ab.",
"to": "bis",
"Toggle navigation": "Navigation umschalten",
"Too Early": "Zu früh",
"Too Many Requests": "Zu viele Anfragen",
"Translate": "Übersetzen",
"Translate It": "Übersetze es",
"Unable to register passkey. Please try again.": "Passkey konnte nicht registriert werden. Bitte versuchen Sie es erneut.",
"Unable to register this passkey.": "Dieser Passkey kann nicht registriert werden.",
"Unable to sign in with this account.": "Anmeldung mit diesem Konto nicht möglich.",
"Unable to verify passkey. Please try again.": "Passkey konnte nicht verifiziert werden. Bitte versuchen Sie es erneut.",
"Unable to write the encrypted environment file.": "Die verschlüsselte Umgebungsdatei konnte nicht geschrieben werden.",
"Unauthorized": "Nicht autorisiert",
"Unavailable For Legal Reasons": "Aus rechtlichen Gründen nicht verfügbar",
"Unknown Error": "Unbekannter Fehler",
"Unpack": "Auspacken",
"Unprocessable Entity": "Unverarbeitbare Entität",
"Unsubscribe": "Abbestellen",
"Unsupported Media Type": "Nicht unterstützter Medientyp",
"Up": "Hoch",
"Update": "Aktualisieren",
"Update :name": ":name aktualisieren",
"Upgrade Required": "Upgrade erforderlich",
"URI Too Long": "URI ist zu lang",
"Use Proxy": "Proxy verwenden",
"User": "Benutzer",
"Variant Also Negotiates": "Variante verhandelt ebenfalls",
"Verify Email Address": "E-Mail-Adresse bestätigen",
"Verify your email address": "Bestätigen Sie Ihre E-Mail-Adresse",
"View": "Ansicht",
"View :name": "Ansicht :name",
"Web Server is Down": "Webserver ist ausgefallen",
"Whoops!": "Ups!",
"Yes": "Ja",
"You are receiving this email because we received a password reset request for your account.": "Sie erhalten diese E-Mail, weil wir einen Antrag auf eine Zurücksetzung Ihres Passworts bekommen haben."
}

119
lang/de/actions.php Normal file
View file

@ -0,0 +1,119 @@
<?php
declare(strict_types=1);
return [
'accept' => 'Akzeptieren',
'action' => 'Aktion',
'actions' => 'Aktionen',
'add' => 'Hinzufügen',
'admin' => 'Administrator',
'agree' => 'Zustimmen',
'archive' => 'Archiv',
'assign' => 'Zuordnen',
'associate' => 'Assoziieren',
'attach' => 'Anfügen',
'browse' => 'Durchsuche',
'cancel' => 'Stornieren',
'choose' => 'Wählen',
'choose_file' => 'Datei wählen',
'choose_image' => 'Wählen Sie Bild',
'click_to_copy' => 'Klicken Sie zum Kopieren',
'close' => 'Schließen',
'collapse' => 'Zusammenbruch',
'collapse_all' => 'Alles reduzieren',
'comment' => 'Kommentar',
'confirm' => 'Bestätigen',
'connect' => 'Verbinden',
'create' => 'Erstellen',
'delete' => 'Löschen',
'detach' => 'Ablösen',
'details' => 'Einzelheiten',
'disable' => 'Deaktivieren',
'discard' => 'Verwerfen',
'done' => 'Erledigt',
'down' => 'Runter',
'duplicate' => 'Duplikat',
'edit' => 'Bearbeiten',
'enable' => 'Aktivieren',
'expand' => 'Expandieren',
'expand_all' => 'Alle erweitern',
'explanation' => 'Erläuterung',
'export' => 'Exportieren',
'file' => 'Datei',
'files' => 'Dateien',
'go_home' => 'Nach Hause gehen',
'hide' => 'Verstecken',
'home' => 'Heim',
'image' => 'Bild',
'impersonate' => 'Imitieren',
'impersonation' => 'Identitätswechsel',
'import' => 'Importieren',
'introduction' => 'Einführung',
'like' => 'Wie',
'load' => 'Belastung',
'localize' => 'Lokalisieren',
'log_in' => 'Anmeldung',
'log_out' => 'Ausloggen',
'named' => [
'add' => ':name hinzufügen',
'choose' => ':name auswählen',
'create' => ':name erstellen',
'delete' => ':name löschen',
'duplicate' => ':name duplizieren',
'edit' => ':name bearbeiten',
'export' => ':name exportieren',
'hide' => ':name ausblenden',
'import' => ':name importieren',
'new' => 'Neu :name',
'restore' => ':name wiederherstellen',
'save' => ':name speichern',
'search' => ':name suchen',
'show' => ':name anzeigen',
'update' => ':name aktualisieren',
'view' => ':name anzeigen',
],
'new' => 'Neu',
'no' => 'Nein',
'open' => 'Öffen',
'open_website' => 'Auf der Website öffnen',
'preview' => 'Vorschau',
'price' => 'Preis',
'record' => 'Aufzeichnen',
'restore' => 'Wiederherstellen',
'save' => 'Speichern',
'save_and_close' => 'Speichern und schließen',
'save_and_return' => 'Speichern und zurückgehen',
'search' => 'Suchen',
'select' => 'Wählen',
'select_all' => 'Alles auswählen',
'send' => 'Absenden',
'settings' => 'Einstellungen',
'show' => 'Anzeigen',
'show_all' => 'Alles anzeigen',
'sign_in' => 'Anmelden',
'solve' => 'Lösen',
'start' => 'Starten',
'stop' => 'Stoppen',
'submit' => 'Absenden',
'subscribe' => 'Abonnieren',
'switch' => 'Umschalten',
'switch_to_role' => 'Zur Rolle wechseln',
'tag' => 'Schlagwort',
'tags' => 'Stichworte',
'target_link' => [
'blank' => 'In einem neuen Fenster öffnen',
'parent' => 'In einem übergeordneten Frame öffnen',
'self' => 'In einem aktuellen Fenster öffnen',
'top' => 'Im obersten Rahmen öffnen',
],
'translate' => 'Übersetzen',
'translate_it' => 'Übersetze es',
'unpack' => 'Entpacken',
'unsubscribe' => 'Abbestellen',
'up' => 'Hoch',
'update' => 'Aktualisieren',
'user' => 'Benutzer',
'view' => 'Ansicht',
'yes' => 'Ja',
];

9
lang/de/auth.php Normal file
View file

@ -0,0 +1,9 @@
<?php
declare(strict_types=1);
return [
'failed' => 'Diese Kombination aus Zugangsdaten wurde nicht in unserer Datenbank gefunden.',
'password' => 'Das Passwort ist falsch.',
'throttle' => 'Zu viele Loginversuche. Versuchen Sie es bitte in :seconds Sekunden nochmal.',
];

84
lang/de/http-statuses.php Normal file
View file

@ -0,0 +1,84 @@
<?php
declare(strict_types=1);
return [
'0' => 'Unbekannter Fehler',
'100' => 'Weiter',
'101' => 'Protokollwechsel',
'102' => 'In Bearbeitung',
'200' => 'OK',
'201' => 'Erstellt',
'202' => 'Akzeptiert',
'203' => 'Nicht verifizierte Information',
'204' => 'Kein Inhalt',
'205' => 'Inhalt zurücksetzen',
'206' => 'Teilinhalt',
'207' => 'Multistatus',
'208' => 'Bereits gemeldet',
'226' => 'IM verwendet',
'300' => 'Mehrere Auswahlmöglichkeiten',
'301' => 'Permanent verschoben',
'302' => 'Gefunden',
'303' => 'Siehe andere Seite',
'304' => 'Nicht modifiziert',
'305' => 'Proxy verwenden',
'307' => 'Temporäre Weiterleitung',
'308' => 'Permanente Weiterleitung',
'400' => 'Ungültige Anfrage',
'401' => 'Nicht autorisiert',
'402' => 'Zahlung erforderlich',
'403' => 'Verboten',
'404' => 'Nicht gefunden',
'405' => 'Methode nicht erlaubt',
'406' => 'Nicht annehmbar',
'407' => 'Proxy-Authentifizierung erforderlich',
'408' => 'Zeitüberschreitung der Anfrage',
'409' => 'Konflikt',
'410' => 'Nicht mehr verfügbar',
'411' => 'Länge erforderlich',
'412' => 'Vorbedingung fehlgeschlagen',
'413' => 'Nutzlast zu groß',
'414' => 'URI zu lang',
'415' => 'Nicht unterstützter Medientyp',
'416' => 'Bereich nicht erfüllbar',
'417' => 'Erwartung gescheitert',
'418' => 'Ich bin eine Teekanne',
'419' => 'Sitzung ist abgelaufen',
'421' => 'Fehlgeleitete Anfrage',
'422' => 'Unverarbeitbare Entität',
'423' => 'Gesperrt',
'424' => 'Fehlgeschlagene Abhängigkeit',
'425' => 'Zu früh',
'426' => 'Upgrade erforderlich',
'428' => 'Voraussetzung erforderlich',
'429' => 'Zu viele Anfragen',
'431' => 'Anfrage-Header-Felder zu groß',
'444' => 'Verbindung ohne Antwort geschlossen',
'449' => 'Wiederhole mit',
'451' => 'Aus rechtlichen Gründen nicht verfügbar',
'499' => 'Client-Closed-Request',
'500' => 'Interner Serverfehler',
'501' => 'Nicht implementiert',
'502' => 'Fehlerhaftes Gateway',
'503' => 'Wartungsmodus',
'504' => 'Gateway-Zeitüberschreitung',
'505' => 'HTTP Version nicht unterstützt',
'506' => 'Variante verhandelt auch',
'507' => 'Nicht genügend Speicherplatz',
'508' => 'Endlosschleife erkannt',
'509' => 'Bandbreitenlimit überschritten',
'510' => 'Nicht erweitert',
'511' => 'Netzwerkauthentifizierung erforderlich',
'520' => 'Unbekannter Fehler',
'521' => 'Webserver ist ausgefallen',
'522' => 'Verbindung abgelaufen',
'523' => 'Quelle ist nicht erreichbar',
'524' => 'Eine Zeitüberschreitung ist aufgetreten',
'525' => 'SSL Handshake fehlgeschlagen',
'526' => 'Ungültiges SSL-Zertifikat',
'527' => 'Railgun-Fehler',
'598' => 'Zeitüberschreitungsfehler beim Lesen des Netzwerks',
'599' => 'Zeitüberschreitungsfehler bei Netzwerkverbindung',
'unknownError' => 'Unbekannter Fehler',
];

8
lang/de/pagination.php Normal file
View file

@ -0,0 +1,8 @@
<?php
declare(strict_types=1);
return [
'next' => 'Weiter &raquo;',
'previous' => '&laquo; Zurück',
];

11
lang/de/passwords.php Normal file
View file

@ -0,0 +1,11 @@
<?php
declare(strict_types=1);
return [
'reset' => 'Das Passwort wurde zurückgesetzt!',
'sent' => 'E-Mail zum Zurücksetzen des Passworts wurde gesendet!',
'throttled' => 'Bitte warten Sie, bevor Sie es erneut versuchen.',
'token' => 'Der Passwort-Wiederherstellungsschlüssel ist ungültig oder abgelaufen.',
'user' => 'Es konnte leider kein Nutzer mit dieser E-Mail-Adresse gefunden werden.',
];

290
lang/de/validation.php Normal file
View file

@ -0,0 +1,290 @@
<?php
declare(strict_types=1);
return [
'accepted' => ':Attribute muss akzeptiert werden.',
'accepted_if' => ':Attribute muss akzeptiert werden, wenn :other :value ist.',
'active_url' => ':Attribute ist keine gültige Internet-Adresse.',
'after' => ':Attribute muss ein Datum nach :date sein.',
'after_or_equal' => ':Attribute muss ein Datum nach :date oder gleich :date sein.',
'alpha' => ':Attribute darf nur aus Buchstaben bestehen.',
'alpha_dash' => ':Attribute darf nur aus Buchstaben, Zahlen, Binde- und Unterstrichen bestehen.',
'alpha_num' => ':Attribute darf nur aus Buchstaben und Zahlen bestehen.',
'any_of' => ':Attribute ist ungültig.',
'array' => ':Attribute muss ein Array sein.',
'array_keys' => 'Das Feld :Attribute darf nur die folgenden Schlüssel enthalten: :values.',
'ascii' => 'Die :attribute darf nur alphanumerische Single-Byte-Zeichen und -Symbole enthalten.',
'base64' => 'Das Feld :attribute muss eine gültige Base64-Zeichenfolge sein.',
'before' => ':Attribute muss ein Datum vor :date sein.',
'before_or_equal' => ':Attribute muss ein Datum vor :date oder gleich :date sein.',
'between' => [
'array' => ':Attribute muss zwischen :min & :max Elemente haben.',
'file' => ':Attribute muss zwischen :min & :max Kilobytes groß sein.',
'numeric' => ':Attribute muss zwischen :min & :max liegen.',
'string' => ':Attribute muss zwischen :min & :max Zeichen lang sein.',
],
'boolean' => ':Attribute muss entweder \'true\' oder \'false\' sein.',
'can' => 'Das Feld :attribute enthält einen nicht autorisierten Wert.',
'confirmed' => ':Attribute stimmt nicht mit der Bestätigung überein.',
'contains' => 'Dem Feld :attribute fehlt ein erforderlicher Wert.',
'current_password' => 'Das Passwort ist falsch.',
'date' => ':Attribute muss ein gültiges Datum sein.',
'date_equals' => ':Attribute muss ein Datum gleich :date sein.',
'date_format' => ':Attribute entspricht nicht dem gültigen Format für :format.',
'decimal' => 'Die :attribute muss :decimal Dezimalstellen haben.',
'declined' => ':Attribute muss abgelehnt werden.',
'declined_if' => ':Attribute muss abgelehnt werden wenn :other :value ist.',
'different' => ':Attribute und :other müssen sich unterscheiden.',
'digits' => ':Attribute muss :digits Stellen haben.',
'digits_between' => ':Attribute muss zwischen :min und :max Stellen haben.',
'dimensions' => ':Attribute hat ungültige Bildabmessungen.',
'distinct' => ':Attribute beinhaltet einen bereits vorhandenen Wert.',
'doesnt_contain' => ':Attribute darf keines der folgenden enthalten: :values.',
'doesnt_end_with' => ':Attribute darf nicht mit einem der folgenden enden: :values.',
'doesnt_start_with' => ':Attribute darf nicht mit einem der folgenden beginnen: :values.',
'email' => ':Attribute muss eine gültige E-Mail-Adresse sein.',
'encoding' => ':Attribute muss als :encoding kodiert sein.',
'ends_with' => ':Attribute muss eine der folgenden Endungen aufweisen: :values',
'enum' => 'Der ausgewählte Wert ist ungültig.',
'exists' => 'Der gewählte Wert für :attribute ist ungültig.',
'extensions' => 'Das Feld :attribute muss eine der folgenden Erweiterungen haben: :values.',
'file' => ':Attribute muss eine Datei sein.',
'filled' => ':Attribute muss ausgefüllt sein.',
'gt' => [
'array' => ':Attribute muss mehr als :value Elemente haben.',
'file' => ':Attribute muss größer als :value Kilobytes sein.',
'numeric' => ':Attribute muss größer als :value sein.',
'string' => ':Attribute muss länger als :value Zeichen sein.',
],
'gte' => [
'array' => ':Attribute muss mindestens :value Elemente haben.',
'file' => ':Attribute muss größer oder gleich :value Kilobytes sein.',
'numeric' => ':Attribute muss größer oder gleich :value sein.',
'string' => ':Attribute muss mindestens :value Zeichen lang sein.',
],
'hex_color' => 'Das Feld :attribute muss eine gültige Hexadezimalfarbe sein.',
'image' => ':Attribute muss ein Bild sein.',
'in' => 'Der gewählte Wert für :attribute ist ungültig.',
'in_array' => 'Der gewählte Wert für :attribute kommt nicht in :other vor.',
'in_array_keys' => 'Das Feld :Attribute muss mindestens einen der folgenden Schlüssel enthalten: :Values.',
'integer' => ':Attribute muss eine ganze Zahl sein.',
'ip' => ':Attribute muss eine gültige IP-Adresse sein.',
'ipv4' => ':Attribute muss eine gültige IPv4-Adresse sein.',
'ipv6' => ':Attribute muss eine gültige IPv6-Adresse sein.',
'json' => ':Attribute muss ein gültiger JSON-String sein.',
'list' => ':Attribute muss eine Liste sein.',
'lowercase' => ':Attribute muss in Kleinbuchstaben sein.',
'lt' => [
'array' => ':Attribute muss weniger als :value Elemente haben.',
'file' => ':Attribute muss kleiner als :value Kilobytes sein.',
'numeric' => ':Attribute muss kleiner als :value sein.',
'string' => ':Attribute muss kürzer als :value Zeichen sein.',
],
'lte' => [
'array' => ':Attribute darf maximal :value Elemente haben.',
'file' => ':Attribute muss kleiner oder gleich :value Kilobytes sein.',
'numeric' => ':Attribute muss kleiner oder gleich :value sein.',
'string' => ':Attribute darf maximal :value Zeichen lang sein.',
],
'mac_address' => 'Der Wert muss eine gültige MAC-Adresse sein.',
'max' => [
'array' => ':Attribute darf maximal :max Elemente haben.',
'file' => ':Attribute darf maximal :max Kilobytes groß sein.',
'numeric' => ':Attribute darf maximal :max sein.',
'string' => ':Attribute darf maximal :max Zeichen haben.',
],
'max_digits' => ':Attribute darf maximal :max Ziffern lang sein.',
'mimes' => ':Attribute muss den Dateityp :values haben.',
'mimetypes' => ':Attribute muss den Dateityp :values haben.',
'min' => [
'array' => ':Attribute muss mindestens :min Elemente haben.',
'file' => ':Attribute muss mindestens :min Kilobytes groß sein.',
'numeric' => ':Attribute muss mindestens :min sein.',
'string' => ':Attribute muss mindestens :min Zeichen lang sein.',
],
'min_digits' => ':Attribute muss mindestens :min Ziffern lang sein.',
'missing' => 'Das Feld :attribute muss fehlen.',
'missing_if' => 'Das Feld :attribute muss fehlen, wenn :other gleich :value ist.',
'missing_unless' => 'Das Feld :attribute muss fehlen, es sei denn, :other ist :value.',
'missing_with' => 'Das Feld :attribute muss fehlen, wenn :values vorhanden ist.',
'missing_with_all' => 'Das Feld :attribute muss fehlen, wenn :values vorhanden sind.',
'multiple_of' => ':Attribute muss ein Vielfaches von :value sein.',
'not_in' => 'Der gewählte Wert für :attribute ist ungültig.',
'not_regex' => ':Attribute hat ein ungültiges Format.',
'numeric' => ':Attribute muss eine Zahl sein.',
'password' => [
'letters' => ':Attribute muss mindestens einen Buchstaben beinhalten.',
'mixed' => ':Attribute muss mindestens einen Großbuchstaben und einen Kleinbuchstaben beinhalten.',
'numbers' => ':Attribute muss mindestens eine Zahl beinhalten.',
'symbols' => ':Attribute muss mindestens ein Sonderzeichen beinhalten.',
'uncompromised' => ':Attribute wurde in einem Datenleck gefunden. Bitte wählen Sie ein anderes :attribute.',
],
'present' => ':Attribute muss vorhanden sein.',
'present_if' => 'Das Feld :attribute muss vorhanden sein, wenn :other gleich :value ist.',
'present_unless' => 'Das Feld :attribute muss vorhanden sein, es sei denn, :other ist :value.',
'present_with' => 'Das Feld :attribute muss vorhanden sein, wenn :values vorhanden ist.',
'present_with_all' => 'Das Feld :attribute muss vorhanden sein, wenn :values vorhanden sind.',
'prohibited' => ':Attribute ist unzulässig.',
'prohibited_if' => ':Attribute ist unzulässig, wenn :other :value ist.',
'prohibited_if_accepted' => 'Das Feld :attribute ist unzulässig, wenn :other gewählt ist.',
'prohibited_if_declined' => 'Das Feld :attribute ist unzulässig, wenn :other abgelehnt ist.',
'prohibited_unless' => ':Attribute ist unzulässig, wenn :other nicht :values ist.',
'prohibits' => ':Attribute verbietet die Angabe von :other.',
'regex' => ':Attribute Format ist ungültig.',
'required' => ':Attribute muss ausgefüllt werden.',
'required_array_keys' => 'Dieses Feld muss Einträge enthalten für: :values.',
'required_if' => ':Attribute muss ausgefüllt werden, wenn :other den Wert :value hat.',
'required_if_accepted' => ':Attribute muss ausgefüllt werden, wenn :other gewählt ist.',
'required_if_declined' => 'Das Feld :attribute ist erforderlich, wenn :other abgelehnt wird.',
'required_unless' => ':Attribute muss ausgefüllt werden, wenn :other nicht den Wert :values hat.',
'required_with' => ':Attribute muss ausgefüllt werden, wenn :values ausgefüllt wurde.',
'required_with_all' => ':Attribute muss ausgefüllt werden, wenn :values ausgefüllt wurde.',
'required_without' => ':Attribute muss ausgefüllt werden, wenn :values nicht ausgefüllt wurde.',
'required_without_all' => ':Attribute muss ausgefüllt werden, wenn keines der Felder :values ausgefüllt wurde.',
'same' => ':Attribute und :other müssen übereinstimmen.',
'size' => [
'array' => ':Attribute muss genau :size Elemente haben.',
'file' => ':Attribute muss :size Kilobyte groß sein.',
'numeric' => ':Attribute muss gleich :size sein.',
'string' => ':Attribute muss :size Zeichen lang sein.',
],
'starts_with' => ':Attribute muss mit einem der folgenden Anfänge aufweisen: :values',
'string' => ':Attribute muss ein String sein.',
'timezone' => ':Attribute muss eine gültige Zeitzone sein.',
'ulid' => 'Die :attribute muss eine gültige ULID sein.',
'unique' => ':Attribute ist bereits vergeben.',
'uploaded' => ':Attribute konnte nicht hochgeladen werden.',
'uppercase' => ':Attribute muss in Großbuchstaben sein.',
'url' => ':Attribute muss eine URL sein.',
'uuid' => ':Attribute muss ein UUID sein.',
'attributes' => [
'address' => 'Adresse',
'affiliate_url' => 'Affiliate-URL',
'age' => 'Alter',
'amount' => 'Höhe',
'announcement' => 'Bekanntmachung',
'area' => 'Gebiet',
'audience_prize' => 'Publikumspreis',
'audience_winner' => 'Publikumsgewinner',
'available' => 'Verfügbar',
'birthday' => 'Geburtstag',
'body' => 'Körper',
'city' => 'Stadt',
'color' => 'Farbe',
'company' => 'Unternehmen',
'compilation' => 'Zusammenstellung',
'concept' => 'Konzept',
'conditions' => 'Bedingungen',
'content' => 'Inhalt',
'contest' => 'Wettbewerb',
'country' => 'Land',
'cover' => 'Abdeckung',
'created_at' => 'Erstellt am',
'creator' => 'Ersteller',
'currency' => 'Währung',
'current_password' => 'Derzeitiges Passwort',
'customer' => 'Kunde',
'date' => 'Datum',
'date_of_birth' => 'Geburtsdatum',
'dates' => 'Termine',
'day' => 'Tag',
'deleted_at' => 'Gelöscht am',
'description' => 'Beschreibung',
'display_type' => 'Anzeigetyp',
'district' => 'Bezirk',
'duration' => 'Dauer',
'email' => 'E-Mail-Adresse',
'excerpt' => 'Auszug',
'filter' => 'Filter',
'finished_at' => 'fertig um',
'first_name' => 'Vorname',
'gender' => 'Geschlecht',
'grand_prize' => 'Hauptpreis',
'group' => 'Gruppe',
'hour' => 'Stunde',
'image' => 'Bild',
'image_desktop' => 'Desktop-Bild',
'image_main' => 'Hauptbild',
'image_mobile' => 'mobiles Bild',
'images' => 'Bilder',
'is_audience_winner' => 'ist Publikumssieger',
'is_hidden' => 'ist versteckt',
'is_subscribed' => 'ist abonniert',
'is_visible' => 'ist sichtbar',
'is_winner' => 'ist Gewinner',
'items' => 'Artikel',
'key' => 'Schlüssel',
'last_name' => 'Nachname',
'lesson' => 'Lektion',
'line_address_1' => 'Adresszeile 1',
'line_address_2' => 'Adresszeile 2',
'login' => 'Anmeldung',
'message' => 'Nachricht',
'middle_name' => 'Zweitname',
'minute' => 'Minute',
'mobile' => 'Handynummer',
'month' => 'Monat',
'name' => 'Name',
'national_code' => 'Länderkennung',
'number' => 'Nummer',
'password' => 'Passwort',
'password_confirmation' => 'Passwortbestätigung',
'phone' => 'Telefonnummer',
'photo' => 'Foto',
'portfolio' => 'Portfolio',
'postal_code' => 'Postleitzahl',
'preview' => 'Vorschau',
'price' => 'Preis',
'product_id' => 'Produkt ID',
'product_uid' => 'Produkt-UID',
'product_uuid' => 'Produkt-UUID',
'promo_code' => 'Aktionscode',
'province' => 'Provinz',
'quantity' => 'Menge',
'reason' => 'Grund',
'recaptcha_response_field' => 'Captcha-Feld',
'referee' => 'Schiedsrichter',
'referees' => 'Schiedsrichter',
'region' => 'Region',
'reject_reason' => 'Ablehnungsgrund',
'remember' => 'Erinnern',
'restored_at' => 'Wiederhergestellt am',
'result_text_under_image' => 'Ergebnistext unter Bild',
'role' => 'Rolle',
'rule' => 'Regel',
'rules' => 'Regeln',
'second' => 'Sekunde',
'sex' => 'Geschlecht',
'shipment' => 'Sendung',
'short_text' => 'Kurzer Text',
'size' => 'Größe',
'skills' => 'Fähigkeiten',
'slug' => 'Schnecke',
'specialization' => 'Spezialisierung',
'started_at' => 'fing an bei',
'state' => 'Bundesland',
'status' => 'Status',
'street' => 'Straße',
'student' => 'Schüler/Student',
'subject' => 'Gegenstand',
'tag' => 'Etikett',
'tags' => 'Stichworte',
'teacher' => 'Lehrer',
'terms' => 'Bedingungen',
'test_description' => 'Test Beschreibung',
'test_locale' => 'Test Region',
'test_name' => 'Testname',
'text' => 'Text',
'time' => 'Uhrzeit',
'title' => 'Titel',
'type' => 'Typ',
'updated_at' => 'Aktualisiert am',
'user' => 'Benutzer',
'username' => 'Benutzername',
'value' => 'Wert',
'winner' => 'Gewinner',
'work' => 'Arbeit',
'year' => 'Jahr',
],
];

1384
package-lock.json generated Normal file

File diff suppressed because it is too large Load diff

20
package.json Normal file
View file

@ -0,0 +1,20 @@
{
"$schema": "https://www.schemastore.org/package.json",
"private": true,
"type": "module",
"scripts": {
"build": "vite build",
"dev": "vite"
},
"devDependencies": {
"@inertiajs/vue3": "^3.7.1",
"@material/material-color-utilities": "^0.4.0",
"@mdi/js": "^7.4.47",
"@vitejs/plugin-vue": "^6.0.9",
"laravel-vite-plugin": "^3.2",
"vite": "^8.3.1",
"vite-plugin-vuetify": "^2.1.3",
"vue": "^3.5.43",
"vuetify": "^4.2.2"
}
}

36
phpunit.xml Normal file
View file

@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="vendor-dev/phpunit/phpunit/phpunit.xsd"
bootstrap="bootstrap/autoload.php"
colors="true"
>
<testsuites>
<testsuite name="Unit">
<directory>tests/Unit</directory>
</testsuite>
<testsuite name="Feature">
<directory>tests/Feature</directory>
</testsuite>
</testsuites>
<source>
<include>
<directory>app</directory>
</include>
</source>
<php>
<env name="APP_ENV" value="testing"/>
<env name="APP_MAINTENANCE_DRIVER" value="file"/>
<env name="BCRYPT_ROUNDS" value="4"/>
<env name="BROADCAST_CONNECTION" value="null"/>
<env name="CACHE_STORE" value="array"/>
<env name="DB_CONNECTION" value="mysql"/>
<env name="DB_DATABASE" value="inhaus_test"/>
<env name="DB_URL" value=""/>
<env name="MAIL_MAILER" value="array"/>
<env name="QUEUE_CONNECTION" value="sync"/>
<env name="SESSION_DRIVER" value="array"/>
<env name="PULSE_ENABLED" value="false"/>
<env name="TELESCOPE_ENABLED" value="false"/>
<env name="NIGHTWATCH_ENABLED" value="false"/>
</php>
</phpunit>

10
pint.json Normal file
View file

@ -0,0 +1,10 @@
{
"preset": "laravel",
"exclude": [
"vendor-dev",
"node_modules",
"public",
"storage",
"bootstrap/cache"
]
}

33
public/.htaccess Normal file
View file

@ -0,0 +1,33 @@
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Handle X-XSRF-Token Header
RewriteCond %{HTTP:x-xsrf-token} .
RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}]
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} (.+)/$
RewriteRule ^ %1 [L,R=301]
# Send Requests To Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
# Statische Assets tragen einen Hash (Vite) bzw. eine Versionsangabe (Filament)
# und dürfen dauerhaft im Browser gecacht werden.
<IfModule mod_headers.c>
<FilesMatch "\.(js|css|woff2?)$">
Header set Cache-Control "public, max-age=31536000, immutable"
</FilesMatch>
</IfModule>

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
import{Cn as e,Hn as t,It as n,Ln as r,Qt as i,Zt as a,mn as o,nn as s,qt as c,rn as l,tn as u,zt as d}from"./theme-D-tNmEQF.js";import{E as f,T as p,d as m}from"./transitions-Cew8HcaC.js";import{c as h,l as g,t as _}from"./AppLayout-CyW53UC0.js";import{g as v,n as y,v as b}from"./mdi-DiyhbERt.js";var x={class:`mb-8`},S={class:`text-headline-large`},C={class:`text-body-large text-medium-emphasis mt-1`},w={__name:`Dashboard`,setup(w){let T=d(),E=a(()=>T.props.auth.user),D=a(()=>E.value.name.split(` `)[0]),O=a(()=>{let e=new Date().getHours();return e<11?`Guten Morgen`:e<18?`Hallo`:`Guten Abend`});return(a,d)=>(o(),u(c,null,[l(r(n),{title:`Start`}),l(_,null,{default:e(()=>[i(`div`,x,[i(`h1`,S,t(O.value)+`, `+t(D.value)+`!`,1),i(`p`,C,`Willkommen in `+t(r(T).props.branding.portal_name)+`.`,1)]),l(h,null,{default:e(()=>[l(g,{cols:`12`,md:`4`},{default:e(()=>[l(m,{class:`h-100`,rounded:`xl`,href:`/profil/bearbeiten`},{default:e(()=>[l(f,{"prepend-icon":r(y),title:`Ihr Profil`},null,8,[`prepend-icon`]),l(p,null,{default:e(()=>[...d[0]||=[s(`Profilbild, Funktion und Kontaktdaten helfen Kolleginnen und Kollegen, Sie zu finden.`,-1)]]),_:1})]),_:1})]),_:1}),l(g,{cols:`12`,md:`4`},{default:e(()=>[l(m,{class:`h-100`,rounded:`xl`,color:`secondary-container`},{default:e(()=>[l(f,{"prepend-icon":r(v),title:`Neuigkeiten`},null,8,[`prepend-icon`]),l(p,null,{default:e(()=>[...d[1]||=[s(`Hier erscheinen bald Beiträge aus Ihren Kategorien.`,-1)]]),_:1})]),_:1})]),_:1}),l(g,{cols:`12`,md:`4`},{default:e(()=>[l(m,{class:`h-100`,rounded:`xl`,color:`tertiary-container`},{default:e(()=>[l(f,{"prepend-icon":r(b),title:`Module`},null,8,[`prepend-icon`]),l(p,null,{default:e(()=>[...d[2]||=[s(`Weitere Funktionen kommen als Plugins hinzu und lassen sich einzeln aktivieren.`,-1)]]),_:1})]),_:1})]),_:1})]),_:1})]),_:1})],64))}};export{w as default};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
import{$t as e,Cn as t,Hn as n,It as r,Kt as i,Ln as a,Lt as o,Qt as s,Rt as c,en as l,mn as u,nn as d,qt as f,rn as p,tn as m}from"./theme-D-tNmEQF.js";import{a as h}from"./transitions-Cew8HcaC.js";import{f as g,t as _}from"./VTextField-CwpDIPQC.js";import{t as v}from"./GuestLayout-BzNvqx8m.js";import{t as y}from"./VAlert-Ujdiz_H0.js";var b={class:`text-center mt-6`},x={__name:`ForgotPassword`,props:{status:{type:String,default:null}},setup(x){let S=c({email:``});return(c,C)=>(u(),m(f,null,[p(a(r),{title:`Passwort vergessen`}),p(v,{title:`Passwort vergessen`},{default:t(()=>[C[4]||=s(`p`,{class:`text-body-medium text-medium-emphasis mb-6`},` Geben Sie Ihre E-Mail-Adresse ein. Wir senden Ihnen einen Link, mit dem Sie ein neues Passwort festlegen können. `,-1),x.status?(u(),e(y,{key:0,type:`success`,variant:`tonal`,class:`mb-6`},{default:t(()=>[d(n(x.status),1)]),_:1})):l(``,!0),p(g,{onSubmit:C[1]||=i(e=>a(S).post(`/forgot-password`),[`prevent`])},{default:t(()=>[p(_,{modelValue:a(S).email,"onUpdate:modelValue":C[0]||=e=>a(S).email=e,label:`E-Mail-Adresse`,type:`email`,autocomplete:`username`,autofocus:``,"error-messages":a(S).errors.email,class:`mb-4`},null,8,[`modelValue`,`error-messages`]),p(h,{type:`submit`,size:`large`,block:``,loading:a(S).processing},{default:t(()=>[...C[2]||=[d(`Link senden`,-1)]]),_:1},8,[`loading`]),s(`div`,b,[p(a(o),{href:`/login`,class:`text-primary text-body-medium`},{default:t(()=>[...C[3]||=[d(`Zurück zur Anmeldung`,-1)]]),_:1})])]),_:1})]),_:1})],64))}};export{x as default};

View file

@ -0,0 +1 @@
import{$t as e,Bn as t,Cn as n,Hn as r,Qt as i,S as a,Vn as o,_n as s,en as c,k as l,l as u,mn as d,rn as f,tn as p}from"./theme-D-tNmEQF.js";import{G as m,W as h,X as g,Y as _,Z as v,d as y,l as b,ot as x,rt as S}from"./transitions-Cew8HcaC.js";var C=l({fluid:{type:Boolean,default:!1},...x(),...h(),..._()},`VContainer`),w=a()({name:`VContainer`,props:C(),setup(e,{slots:n}){let{rtlClasses:r}=u(),{dimensionStyles:i}=m(e);return S(()=>f(e.tag,{class:t([`v-container`,{"v-container--fluid":e.fluid},r.value,e.class]),style:o([i.value,e.style])},n)),{}}}),T={class:`w-100 mx-auto`,style:{"max-width":`440px`}},E={class:`d-flex justify-center mb-8`},D={key:0,class:`text-headline-small mb-6`},O={__name:`GuestLayout`,props:{title:{type:String,default:``}},setup(t){return(a,o)=>(d(),e(g,null,{default:n(()=>[f(b,{class:`bg-surface-container`},{default:n(()=>[f(w,{class:`fill-height d-flex align-center justify-center`},{default:n(()=>[i(`div`,T,[i(`div`,E,[f(v,{height:48})]),f(y,{rounded:`xl`,color:`surface`,class:`pa-4 pa-sm-8`},{default:n(()=>[t.title?(d(),p(`h1`,D,r(t.title),1)):c(``,!0),s(a.$slots,`default`)]),_:3})])]),_:3})]),_:3})]),_:3}))}};export{O as t};

View file

@ -0,0 +1 @@
@layer vuetify-components{.v-container{width:100%;margin-left:auto;margin-right:auto;padding:16px}@media (width>=840px){.v-container{max-width:700px}}@media (width>=1145px){.v-container{max-width:1000px}}@media (width>=1545px){.v-container{max-width:1400px}}@media (width>=2138px){.v-container{max-width:2000px}}.v-container--fluid{max-width:100%}}

View file

@ -0,0 +1 @@
@layer vuetify-components{.v-checkbox.v-input{flex:0 auto}.v-checkbox .v-selection-control{min-height:var(--v-input-control-height)}.v-selection-control{contain:layout;-webkit-user-select:none;user-select:none;flex:1 0;grid-area:control;align-items:center;display:flex;position:relative}.v-selection-control .v-label{white-space:normal;word-break:break-word;opacity:1;height:100%}.v-selection-control--disabled{opacity:var(--v-disabled-opacity);pointer-events:none}.v-selection-control--error:not(.v-selection-control--disabled) .v-label{color:rgb(var(--v-theme-error))}.v-selection-control--inline{flex:none;min-width:0;max-width:100%;display:inline-flex}.v-selection-control--inline .v-label{width:auto}.v-selection-control--density-default{--v-selection-control-size:40px}.v-selection-control--density-comfortable{--v-selection-control-size:36px}.v-selection-control--density-compact{--v-selection-control-size:28px}.v-selection-control__wrapper{width:var(--v-selection-control-size);height:var(--v-selection-control-size);flex:none;justify-content:center;align-items:center;display:inline-flex;position:relative}.v-selection-control__input{width:var(--v-selection-control-size);height:var(--v-selection-control-size);border-radius:50%;flex:none;justify-content:center;align-items:center;display:flex;position:relative}.v-selection-control__input input{cursor:pointer;opacity:0;width:100%;height:100%;position:absolute;top:0;left:0}.v-selection-control__input:before{opacity:0;pointer-events:none;content:"";background-color:currentColor;border-radius:100%;width:100%;height:100%;position:absolute;top:0;left:0}.v-selection-control__input:hover:before{opacity:calc(var(--v-hover-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control__input>.v-icon{opacity:var(--v-medium-emphasis-opacity)}.v-selection-control--disabled .v-selection-control__input>.v-icon,.v-selection-control--dirty .v-selection-control__input>.v-icon,.v-selection-control--indeterminate .v-selection-control__input>.v-icon,.v-selection-control--error .v-selection-control__input>.v-icon{opacity:1}.v-selection-control--error:not(.v-selection-control--disabled) .v-selection-control__input>.v-icon{color:rgb(var(--v-theme-error))}.v-selection-control--focus-visible .v-selection-control__input:before{opacity:calc(var(--v-focus-opacity) * var(--v-theme-overlay-multiplier))}.v-selection-control-group{flex-direction:column;grid-area:control;display:flex}.v-selection-control-group--inline{flex-flow:wrap}}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1 @@
import{Cn as e,It as t,Kt as n,Ln as r,Rt as i,mn as a,nn as o,qt as s,rn as c,tn as l}from"./theme-D-tNmEQF.js";import{a as u}from"./transitions-Cew8HcaC.js";import{f as d,t as f}from"./VTextField-CwpDIPQC.js";import{t as p}from"./GuestLayout-BzNvqx8m.js";var m={__name:`ResetPassword`,props:{email:{type:String,default:``},token:{type:String,required:!0}},setup(m){let h=m,g=i({token:h.token,email:h.email,password:``,password_confirmation:``});function _(){g.post(`/reset-password`,{onFinish:()=>g.reset(`password`,`password_confirmation`)})}return(i,m)=>(a(),l(s,null,[c(r(t),{title:`Neues Passwort`}),c(p,{title:`Neues Passwort festlegen`},{default:e(()=>[c(d,{onSubmit:n(_,[`prevent`])},{default:e(()=>[c(f,{modelValue:r(g).email,"onUpdate:modelValue":m[0]||=e=>r(g).email=e,label:`E-Mail-Adresse`,type:`email`,autocomplete:`username`,"error-messages":r(g).errors.email,class:`mb-2`},null,8,[`modelValue`,`error-messages`]),c(f,{modelValue:r(g).password,"onUpdate:modelValue":m[1]||=e=>r(g).password=e,label:`Neues Passwort`,type:`password`,autocomplete:`new-password`,autofocus:``,"error-messages":r(g).errors.password,class:`mb-2`},null,8,[`modelValue`,`error-messages`]),c(f,{modelValue:r(g).password_confirmation,"onUpdate:modelValue":m[2]||=e=>r(g).password_confirmation=e,label:`Passwort wiederholen`,type:`password`,autocomplete:`new-password`,class:`mb-4`},null,8,[`modelValue`]),c(u,{type:`submit`,size:`large`,block:``,loading:r(g).processing},{default:e(()=>[...m[3]||=[o(`Passwort speichern`,-1)]]),_:1},8,[`loading`])]),_:1})]),_:1})],64))}};export{m as default};

View file

@ -0,0 +1 @@
import{$t as e,Cn as t,Hn as n,It as r,Ln as i,Lt as a,Qt as o,Zt as s,en as c,gn as l,mn as u,nn as d,qt as f,rn as p,tn as m}from"./theme-D-tNmEQF.js";import{T as h,a as g,d as _}from"./transitions-Cew8HcaC.js";import{a as v,c as y,l as b,o as x,s as S,t as C}from"./AppLayout-CyW53UC0.js";import{_ as w,c as T,i as E,n as D,p as O,s as k}from"./mdi-DiyhbERt.js";var A={class:`d-flex flex-column flex-sm-row align-center ga-6 pa-6 pa-md-8`},j={class:`flex-grow-1 text-center text-sm-start`},M={class:`text-headline-medium`},N={key:0,class:`text-title-medium text-medium-emphasis mt-1`},P={__name:`Show`,props:{person:{type:Object,required:!0},isOwnProfile:{type:Boolean,default:!1}},setup(P){let F=P,I=s(()=>[{icon:T,label:`E-Mail`,value:F.person.email,href:`mailto:${F.person.email}`},{icon:w,label:`Telefon`,value:F.person.phone,href:F.person.phone&&`tel:${F.person.phone}`},{icon:E,label:`Mobil`,value:F.person.mobile,href:F.person.mobile&&`tel:${F.person.mobile}`},{icon:k,label:`Abteilung`,value:F.person.department},{icon:O,label:`Standort`,value:F.person.location}].filter(e=>e.value));return(s,w)=>(u(),m(f,null,[p(i(r),{title:P.person.name},null,8,[`title`]),p(C,null,{default:t(()=>[p(_,{rounded:`xl`,class:`mb-6`},{default:t(()=>[o(`div`,A,[p(S,{user:P.person,size:128},null,8,[`user`]),o(`div`,j,[o(`h1`,M,n(P.person.name),1),P.person.job_title?(u(),m(`div`,N,n(P.person.job_title),1)):c(``,!0)]),P.isOwnProfile?(u(),e(i(a),{key:0,href:`/profil/bearbeiten`},{default:t(()=>[p(g,{variant:`tonal`,"prepend-icon":i(D)},{default:t(()=>[...w[0]||=[d(`Profil bearbeiten`,-1)]]),_:1},8,[`prepend-icon`])]),_:1})):c(``,!0)])]),_:1}),p(y,null,{default:t(()=>[p(b,{cols:`12`,md:`5`},{default:t(()=>[p(_,{rounded:`xl`,title:`Kontakt`,class:`h-100`},{default:t(()=>[p(v,{"bg-color":`transparent`},{default:t(()=>[(u(!0),m(f,null,l(I.value,t=>(u(),e(x,{key:t.label,"prepend-icon":t.icon,title:t.value,subtitle:t.label,href:t.href||void 0},null,8,[`prepend-icon`,`title`,`subtitle`,`href`]))),128))]),_:1})]),_:1})]),_:1}),p(b,{cols:`12`,md:`7`},{default:t(()=>[p(_,{rounded:`xl`,title:`Über mich`,class:`h-100`},{default:t(()=>[P.person.about?(u(),e(h,{key:0,class:`text-body-large`,style:{"white-space":`pre-line`}},{default:t(()=>[d(n(P.person.about),1)]),_:1})):(u(),e(h,{key:1,class:`text-medium-emphasis`},{default:t(()=>[...w[1]||=[d(`Noch keine Angaben.`,-1)]]),_:1}))]),_:1})]),_:1})]),_:1})]),_:1})],64))}};export{P as default};

View file

@ -0,0 +1 @@
@layer vuetify-components{.v-alert{--v-border-color:currentColor;flex:1;grid-template-columns:max-content auto max-content max-content;grid-template-areas:"prepend content append close"".content. .";padding:16px;display:grid;position:relative;overflow:hidden}.v-alert--absolute{position:absolute}.v-alert--fixed{position:fixed}.v-alert--sticky{position:sticky}.v-alert{border-radius:4px}.v-alert--variant-plain,.v-alert--variant-outlined,.v-alert--variant-text,.v-alert--variant-tonal{color:inherit;background:0 0}.v-alert--variant-plain{opacity:.62}.v-alert--variant-plain:focus,.v-alert--variant-plain:hover{opacity:1}.v-alert--variant-plain .v-alert__overlay{display:none}.v-alert--variant-elevated,.v-alert--variant-flat{background:rgb(var(--v-theme-surface-light));color:color-mix(in srgb, rgb(var(--v-theme-on-surface-light)) calc(var(--v-high-emphasis-opacity) * 100%), transparent)}.v-alert--variant-elevated{box-shadow:0px 1px 2px 0px rgba(var(--v-shadow-color), var(--v-shadow-key-opacity,.3)), 0px 1px 3px 1px rgba(var(--v-shadow-color), var(--v-shadow-ambient-opacity,.15));--v-elevation-overlay:color-mix(in srgb, var(--v-elevation-overlay-color) 2%, transparent)}.v-alert--variant-flat{box-shadow:0px 0px 0px 0px rgba(var(--v-shadow-color), var(--v-shadow-key-opacity,.3)), 0px 0px 0px 0px rgba(var(--v-shadow-color), var(--v-shadow-ambient-opacity,.15));--v-elevation-overlay:color-mix(in srgb, var(--v-elevation-overlay-color) 0%, transparent)}.v-alert--variant-outlined{border:thin solid}.v-alert--variant-text .v-alert__overlay{background:currentColor}.v-alert--variant-tonal .v-alert__underlay{opacity:var(--v-activated-opacity);pointer-events:none;background:currentColor;inset:0}.v-alert .v-alert__underlay{position:absolute}.v-alert--prominent{grid-template-areas:"prepend content append close""prepend content. ."}.v-alert.v-alert--border.v-alert--border-start{padding-inline-start:24px}.v-alert.v-alert--border.v-alert--border-end{padding-inline-end:24px}.v-alert--variant-plain{transition:opacity .2s cubic-bezier(.4,0,.2,1)}.v-alert--density-default{padding-top:16px;padding-bottom:16px}.v-alert--density-default.v-alert--border-top{padding-top:24px}.v-alert--density-default.v-alert--border-bottom{padding-bottom:24px}.v-alert--density-comfortable{padding-top:12px;padding-bottom:12px}.v-alert--density-comfortable.v-alert--border-top{padding-top:20px}.v-alert--density-comfortable.v-alert--border-bottom{padding-bottom:20px}.v-alert--density-compact{padding-top:8px;padding-bottom:8px}.v-alert--density-compact.v-alert--border-top{padding-top:16px}.v-alert--density-compact.v-alert--border-bottom{padding-bottom:16px}.v-alert:not(:has(.v-alert-title)) .v-alert__content{padding-block:.125rem}.v-alert__border{border-radius:inherit;opacity:.38;pointer-events:none;border:0 solid;width:100%;position:absolute;inset:0}.v-alert__border--border{box-shadow:none;border-width:8px}.v-alert--border-start .v-alert__border{border-inline-start-width:8px}.v-alert--border-end .v-alert__border{border-inline-end-width:8px}.v-alert--border-top .v-alert__border{border-top-width:8px}.v-alert--border-bottom .v-alert__border{border-bottom-width:8px}.v-alert__close{flex:0 auto;grid-area:close}.v-alert__close>.v-btn{margin-block:calc(-1 * (var(--v-btn-height) + 12px - 1.75rem) / 2)}.v-alert__content{grid-area:content;align-self:center;overflow:hidden}.v-alert__content>:first-child{margin-top:0}.v-alert__content>:last-child{margin-bottom:0}.v-alert__append,.v-alert__close{margin-inline-start:16px}.v-alert__append{grid-area:append;align-self:flex-start}.v-alert__append+.v-alert__close{margin-inline-start:16px}.v-alert__prepend{grid-area:prepend;align-self:flex-start;align-items:center;min-height:1.75rem;margin-inline-end:16px;display:flex}.v-alert__prepend>.v-icon{width:1.75rem;height:1.75rem;font-size:1.75rem}.v-alert--prominent .v-alert__prepend{align-self:center}.v-alert__underlay{grid-area:none;position:absolute}.v-alert--border-start .v-alert__underlay{border-top-left-radius:0;border-bottom-left-radius:0}.v-alert--border-end .v-alert__underlay{border-top-right-radius:0;border-bottom-right-radius:0}.v-alert--border-top .v-alert__underlay{border-top-left-radius:0;border-top-right-radius:0}.v-alert--border-bottom .v-alert__underlay{border-bottom-right-radius:0;border-bottom-left-radius:0}.v-alert-title{-webkit-hyphens:auto;hyphens:auto;letter-spacing:normal;overflow-wrap:normal;text-transform:none;word-break:normal;word-wrap:break-word;align-self:center;align-items:center;font-size:1.5rem;font-weight:400;line-height:1.75rem;display:flex}@media (forced-colors:active){.v-alert:not(.v-alert--variant-text,.v-alert--variant-plain){border-style:solid}.v-alert--variant-outlined,.v-alert--variant-tonal{border-width:medium}.v-alert--variant-elevated,.v-alert--variant-flat{border-width:thick}}}

View file

@ -0,0 +1 @@
import{Bn as e,Pn as t,Qt as n,S as r,St as i,Vn as a,Zt as o,c as s,i as c,k as l,on as u,p as d,r as f,rn as p,u as m}from"./theme-D-tNmEQF.js";import{A as h,B as g,C as _,G as v,H as y,J as b,K as x,L as S,M as C,O as w,U as T,V as E,W as D,Y as O,_ as k,a as A,at as j,j as M,k as N,ot as P,v as F,w as I}from"./transitions-Cew8HcaC.js";var L=j(`v-alert-title`),R=l({iconSize:[Number,String],iconSizes:{type:Array,default:()=>[[`x-small`,10],[`small`,16],[`default`,24],[`large`,28],[`x-large`,32]]}},`iconSize`);function z(e,t){return{iconSize:o(()=>{let n=new Map(e.iconSizes),r=e.iconSize??t()??`default`;return n.has(r)?n.get(r):r})}}var B=[`success`,`info`,`warning`,`error`],V=l({border:{type:[Boolean,String],validator:e=>i(e)||[`top`,`end`,`bottom`,`start`].includes(e)},borderColor:String,closable:Boolean,closeIcon:{type:d,default:`$close`},closeLabel:{type:String,default:`$vuetify.close`},icon:{type:[Boolean,String,Function,Object],default:null},modelValue:{type:Boolean,default:!0},prominent:Boolean,title:String,text:String,type:{type:String,validator:e=>B.includes(e)},...P(),...M(),...D(),..._(),...R(),...y(),...k(),...g(),...O(),...f(),...N({variant:`flat`})},`VAlert`),H=r()({name:`VAlert`,props:V(),emits:{"click:close":e=>!0,"update:modelValue":e=>!0},setup(r,{emit:i,slots:o}){let l=m(r,`modelValue`),d=t(()=>{if(r.icon!==!1)return r.type?r.icon??`$${r.type}`:r.icon}),{iconSize:f}=z(r,()=>r.prominent?44:void 0),{themeClasses:g}=c(r),{colorClasses:_,colorStyles:y,variantClasses:D}=h(()=>({color:r.color??r.type,variant:r.variant})),{densityClasses:O}=C(r),{dimensionStyles:k}=v(r),{elevationClasses:j}=I(r),{locationStyles:M}=T(r),{positionClasses:N}=F(r),{roundedClasses:P,roundedStyles:R}=E(r),{textColorClasses:B,textColorStyles:V}=b(()=>r.borderColor),{t:H}=s(),U=t(()=>({"aria-label":H(r.closeLabel),onClick(e){l.value=!1,i(`click:close`,e)}}));return()=>{let t=!!(o.prepend||d.value),i=!!(o.title||r.title),s=!!(o.close||r.closable),c={density:r.density,icon:d.value,size:r.iconSize||r.prominent?f.value:void 0};return l.value&&p(r.tag,{class:e([`v-alert`,r.border&&{"v-alert--border":!!r.border,[`v-alert--border-${r.border===!0?`start`:r.border}`]:!0},{"v-alert--prominent":r.prominent},g.value,_.value,O.value,j.value,N.value,P.value,D.value,r.class]),style:a([y.value,k.value,M.value,R.value,r.style]),role:`alert`},{default:()=>[w(!1,`v-alert`),r.border&&n(`div`,{key:`border`,class:e([`v-alert__border`,B.value]),style:a(V.value)},null),t&&n(`div`,{key:`prepend`,class:`v-alert__prepend`},[o.prepend?p(S,{key:`prepend-defaults`,disabled:!d.value,defaults:{VIcon:{...c}}},o.prepend):p(x,u({key:`prepend-icon`},c),null)]),n(`div`,{class:`v-alert__content`},[i&&p(L,{key:`title`},{default:()=>[o.title?.()??r.title]}),o.text?.()??r.text,o.default?.()]),o.append&&n(`div`,{key:`append`,class:`v-alert__append`},[o.append()]),s&&n(`div`,{key:`close`,class:`v-alert__close`},[o.close?p(S,{key:`close-defaults`,defaults:{VBtn:{icon:r.closeIcon,size:`x-small`,variant:`text`}}},{default:()=>[o.close?.({props:U.value})]}):p(A,u({key:`close-btn`,icon:r.closeIcon,size:`x-small`,variant:`text`},U.value),null)])]})}}});export{H as t};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

Some files were not shown because too many files have changed in this diff Show more