Phase 0: Fundament für Inhaus
Some checks failed
CI / PHP 8.3 / mariadb:10.6 (pull_request) Successful in 1m14s
CI / PHP 8.4 / mariadb:10.6 (pull_request) Successful in 1m12s
CI / PHP 8.4 / mariadb:11.4 (pull_request) Successful in 1m7s
CI / PHP 8.3 / mariadb:11.4 (pull_request) Successful in 1m19s
CI / PHP 8.3 / mysql:8.0 (pull_request) Successful in 1m32s
CI / PHP 8.4 / mysql:8.0 (pull_request) Successful in 1m22s
CI / PHP 8.4 / mysql:8.4 (pull_request) Successful in 1m32s
CI / PHP 8.3 / mysql:8.4 (pull_request) Successful in 1m35s
CI / Build-Artefakte aktuell (pull_request) Failing after 1m7s

- Laravel 13 mit Filament 5 (Admin), Inertia 3 + Vue 3 + Vuetify 4 (Material 3)
- Anmeldung über Fortify (Login, Passwort vergessen/ändern), keine Selbstregistrierung
- Profil mit Profilbild (WebP in festen Größen), Personenseiten, Header mit Avatar-Menü
- Material-3-Farbschema aus der Primärfarbe, hell/dunkel/System pro Person
- Basis-Branding (Portalname, Logo, Primärfarbe) im Admin unter „Erscheinungsbild“
- Benutzerverwaltung im Admin, Zugang vorläufig über is_admin
- vendor/ (ohne Dev-Pakete) und Frontend-Build mitversioniert, Dev-Pakete in vendor-dev/
- PHPUnit-Tests gegen MySQL/MariaDB, Forgejo-CI-Matrix, Docker-Entwicklungsumgebung
- VERSION, CHANGELOG.md und CONTRIBUTING.md mit Release-Ablauf

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
Friederich Loheide 2026-09-25 20:35:30 +00:00
parent 7197eaebf2
commit 9c0f8de791
15771 changed files with 1564103 additions and 5 deletions

View file

@ -0,0 +1,174 @@
<?php
namespace Filament\Schemas\Commands;
use Filament\Schemas\Commands\FileGenerators\LivewireSchemaComponentClassGenerator;
use Filament\Support\Commands\Concerns\CanAskForLivewireComponentLocation;
use Filament\Support\Commands\Concerns\CanAskForViewLocation;
use Filament\Support\Commands\Concerns\CanManipulateFiles;
use Filament\Support\Commands\Exceptions\FailureCommandOutput;
use Illuminate\Console\Command;
use Illuminate\Support\Str;
use Symfony\Component\Console\Attribute\AsCommand;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputOption;
use function Laravel\Prompts\text;
#[AsCommand(name: 'make:filament-livewire-schema', aliases: [
'filament:infolist-schema',
'filament:livewire-schema',
'make:filament-infolist-schema',
'make:infolist-schema',
'make:livewire-schema',
])]
class MakeLivewireSchemaCommand extends Command
{
use CanAskForLivewireComponentLocation;
use CanAskForViewLocation;
use CanManipulateFiles;
protected $description = 'Create a new Livewire component containing a Filament schema';
protected $name = 'make:filament-livewire-schema';
/**
* @var array<string>
*/
protected $aliases = [
'filament:infolist-schema',
'filament:livewire-schema',
'make:filament-infolist-schema',
'make:infolist-schema',
'make:livewire-schema',
];
/**
* @var class-string
*/
protected string $fqn;
protected string $fqnEnd;
protected string $path;
protected ?string $view = null;
protected ?string $viewPath = null;
/**
* @return array<InputArgument>
*/
protected function getArguments(): array
{
return [
new InputArgument(
name: 'name',
mode: InputArgument::OPTIONAL,
description: 'The name of the Livewire component to generate, optionally prefixed with directories',
),
];
}
/**
* @return array<InputOption>
*/
protected function getOptions(): array
{
return [
new InputOption(
name: 'force',
shortcut: 'F',
mode: InputOption::VALUE_NONE,
description: 'Overwrite the contents of the files if they already exist',
),
];
}
public function handle(): int
{
try {
$this->configureFqnEnd();
$this->configureLocation();
$this->createLivewireComponent();
$this->createView();
} catch (FailureCommandOutput) {
return static::FAILURE;
}
$this->components->info("Livewire component [{$this->fqn}] created successfully.");
return static::SUCCESS;
}
protected function configureFqnEnd(): void
{
$this->fqnEnd = (string) str($this->argument('name') ?? text(
label: 'What is the Livewire component name?',
placeholder: 'ViewBlogPost',
required: true,
))
->trim('/')
->trim('\\')
->trim(' ')
->studly()
->replace('/', '\\');
}
protected function configureLocation(): void
{
[
$namespace,
$path,
$viewNamespace,
] = $this->askForLivewireComponentLocation(
question: 'Where would you like to create the schema?',
);
$this->fqn = "{$namespace}\\{$this->fqnEnd}";
$this->path = (string) str("{$path}\\{$this->fqnEnd}.php")
->replace('\\', '/')
->replace('//', '/');
[
$this->view,
$this->viewPath,
] = $this->askForViewLocation(
str($this->fqn)
->afterLast('\\Livewire\\')
->prepend('Livewire\\')
->replace('\\', '/')
->explode('/')
->map(Str::kebab(...))
->implode('.'),
defaultNamespace: $viewNamespace,
);
}
protected function createLivewireComponent(): void
{
if (! $this->option('force') && $this->checkForCollision($this->path)) {
throw new FailureCommandOutput;
}
$this->writeFile($this->path, app(LivewireSchemaComponentClassGenerator::class, [
'fqn' => $this->fqn,
'view' => $this->view,
]));
}
protected function createView(): void
{
if (blank($this->view)) {
return;
}
if (! $this->option('force') && $this->checkForCollision($this->viewPath)) {
throw new FailureCommandOutput;
}
$this->copyStubToApp('LivewireSchemaView', $this->viewPath);
}
}