<?php
 namespace App\Services\Install; use Illuminate\Support\Facades\Storage; class InstallService { private const LOCK = 'installed'; public function isInstalled(): bool { return Storage::disk('local')->exists(self::LOCK); } public function markInstalled(array $meta = []): void { Storage::disk('local')->put(self::LOCK, json_encode(array_merge([ 'installed_at' => now()->toIso8601String(), 'version' => config('app.version'), ], $meta), JSON_PRETTY_PRINT)); } } 