mirror of
https://github.com/HolgerHatGarKeineNode/einundzwanzig-app.git
synced 2026-03-16 15:03:17 +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,6 +4,7 @@ use App\Attributes\SeoDataAttribute;
|
||||
use App\Models\Lecturer;
|
||||
use App\Traits\SeoTrait;
|
||||
use Illuminate\Validation\Rule;
|
||||
use Livewire\Attributes\Locked;
|
||||
use Livewire\Attributes\Validate;
|
||||
use Livewire\Component;
|
||||
use Livewire\WithFileUploads;
|
||||
@@ -34,9 +35,14 @@ class extends Component {
|
||||
public ?string $node_id = null;
|
||||
public ?string $paynym = null;
|
||||
|
||||
// System fields (read-only)
|
||||
// System fields (read-only) - locked to prevent client-side tampering
|
||||
#[Locked]
|
||||
public ?int $created_by = null;
|
||||
|
||||
#[Locked]
|
||||
public ?string $created_at = null;
|
||||
|
||||
#[Locked]
|
||||
public ?string $updated_at = null;
|
||||
|
||||
public function mount(): void
|
||||
|
||||
Reference in New Issue
Block a user