mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-03-14 14:23:18 +00:00
🔥 Remove Laravel Sail, Docker, and related setup, migrate to simplified local development environment
- **Removed:** `docker-compose.yml`, Sail-specific Dockerfiles, and related scripts for PHP 8.3 setup. - **Updated:** Documentation to reflect a shift from Docker to a direct PHP-based local development workflow. - **Removed:** `laravel/sail` dependency from `composer.lock`. - **Implemented:** `#[Locked]` Livewire attribute across components for read-only properties. - **Added:** Feature tests to ensure locked properties cannot be tampered with.
This commit is contained in:
@@ -4,11 +4,13 @@ namespace App\Livewire\Forms;
|
||||
|
||||
use App\Enums\SelfHostedServiceType;
|
||||
use App\Models\SelfHostedService;
|
||||
use Livewire\Attributes\Locked;
|
||||
use Livewire\Attributes\Validate;
|
||||
use Livewire\Form;
|
||||
|
||||
class ServiceForm extends Form
|
||||
{
|
||||
#[Locked]
|
||||
public ?SelfHostedService $service = null;
|
||||
|
||||
#[Validate('required|string|max:255')]
|
||||
@@ -47,7 +49,7 @@ class ServiceForm extends Form
|
||||
'name' => ['required', 'string', 'max:255'],
|
||||
'type' => [
|
||||
'required',
|
||||
'in:' . collect(SelfHostedServiceType::cases())->map(fn($c) => $c->value)->implode(',')
|
||||
'in:'.collect(SelfHostedServiceType::cases())->map(fn ($c) => $c->value)->implode(','),
|
||||
],
|
||||
'intro' => ['nullable', 'string'],
|
||||
'url_clearnet' => ['nullable', 'url', 'max:255'],
|
||||
|
||||
Reference in New Issue
Block a user