What this thread does
The problem
Match the exception and emitting process in an existing Laravel app before clearing caches. These four families need different repairs.
Versions and licence, checked 2026-10-20
| Scope | Official source fetched today | Consequence |
|---|---|---|
| Laravel 11.x | Support table ends security fixes March 12, 2026 | Recover the older app; plan upgrading separately |
| Laravel 12.x | Same table ends bug fixes August 13, 2026 and security fixes February 24, 2027 | Security fixes only at this check; not claimed as newest major |
| Framework licence | Official 12.x terms are MIT | No hosting prices compared |
Record installed versions with composer show laravel/framework and php -v. Read corresponding 11.x docs for older apps; examples use 12.x. No current patch is asserted.
Which repair to pick
| Symptom | Check first | Repair |
|---|---|---|
| Class not found | Namespace, case, dependency/provider | Fix availability, regenerate autoload |
| 419 Page Expired | Session cookie/request token | Restore persistence/token delivery |
| SQLSTATE connection error | DNS/port from failing process | Correct network context/cached settings |
| Vite manifest not found | Deployed build output | Ship complete built assets |
Commands below are proposed; none was run here.
Class not found / autoload
The exact message Class "Phiki\Adapters\Laravel\PhikiServiceProvider" not found appears in rizkywahyuprasetiyo's issue #57227 (checked 2026-10-20). The report says resolution removed the package while its provider remained referenced. Another commenter confirms it; the maintainer redirected to support without confirming a fix.
For app classes, align namespace, import, filename and directory case with the PSR-4 mapping. For package providers, decide if the package is needed. Restore locked dependencies or remove obsolete explicit registration from bootstrap/providers.php and related configuration. Autoload dumping cannot recreate removed classes.
composer show phiki/phiki
composer install --no-scripts
composer dump-autoload -o --strict-psr --no-scripts
The first command is Phiki-specific. Restore locked dependencies without Laravel scripts while bootstrap is broken; after correcting availability:
composer dump-autoload -o
php artisan package:discover
Do not run unconstrained composer update, edit vendor files or place runtime classes only in development dependencies. Composer PSR-4 and CLI options checked 2026-10-20.
419 Page Expired / CSRF
The exact string 419 Page Expired occurs in raldskie's Livewire discussion #9228, with independent reports on both requested Laravel lines. A commenter reports changing session storage helped; this is not a universal driver fix (checked 2026-10-20).
Missing/stale tokens, expired sessions or cookies not returned can fail CSRF validation. Inspect the POST in DevTools without logging cookie values. Check cookie domain/path, HTTPS settings, shared session storage and backend reachability. Ensure the expected web middleware applies.
php artisan route:list -v
php artisan config:clear
Clear cached configuration after correcting settings. For Blade forms:
<form method="POST" action="/profile">
@csrf
<button type="submit">Save</button>
</form>
For AJAX send the current X-CSRF-TOKEN or documented X-XSRF-TOKEN cookie/header flow with the session cookie. Reload expired forms. Rebuild configuration caches through normal deployment after correction.
Do not disable CSRF globally, exempt login with wildcards, rotate the app key or assume a meta tag sends a token. CSRF, sessions and configuration docs checked 2026-10-20. Database sessions need their table and connection; no migration is authorized here.
SQLSTATE connection errors
The exact prefix SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for mysql failed occurs in whoisnegrello's Sail extension issue #153. Jason6809's Telescope issue #1672 reports the same DNS failure while the app works (checked 2026-10-20). These show demand, not a confirmed framework fix.
This process cannot resolve the service name. mysql can work inside a container network while host PHP, an editor or scheduled command cannot resolve it. Identify the PHP executable/container emitting the error. Use the service hostname inside that network or the published host address/port from the host.
php -r 'echo PHP_BINARY, PHP_EOL; echo gethostbyname("mysql"), PHP_EOL;'
./vendor/bin/sail ps
php artisan config:clear
Probe DNS in the failing context; an unchanged hostname means lookup failed. Inspect service state/port mapping, correct that runtime's configuration privately and clear stale config. Restart long-lived workers through normal deployment if they retain old settings. Retest the original request after confirming its intended endpoint.
Do not expose credentials, assume web/CLI share a network, reset the database or use migrations as a probe. Connection-refused and access-denied suffixes need different listener/port or authentication checks. Sail networking and database configuration checked 2026-10-20.
Vite manifest not found
The exact prefix Vite manifest not found at: appears in dajoeberlei's issue #42991; the path varies. The author reports npm run build helped; Laravel member timacdonald distinguishes local HMR. Later replies include a fresh Laravel 11 report (checked 2026-10-20).
Outside dev-server mode Laravel reads a generated manifest. Missing assets, a custom build directory or partial deployment can leave it unavailable. In the build workspace using the app's npm lockfile:
npm ci
npm run build
test -f public/build/manifest.json
Ship all public/build output with the release. For custom paths, align the PHP helper and plugin. Locally use npm run dev while reachable, not for production.
Do not handwrite an empty manifest, ship JSON without hashed assets, leave a stale development hot-file in production or disable Vite to hide errors. Official Vite build/customization guide checked 2026-10-20.
A prompt to give your agent
Read the linked official source and matching report before proposing commands; do not guess from an error label. Record installed framework/PHP versions, exact message, route and emitting process. Choose one branch, explain its cause and propose the smallest repair with verification. Keep credentials/cookies private. Do not disable CSRF, update unrelated dependencies or modify a database. Report checks actually run.
Limits
No Laravel app, Composer install, asset build, HTTP request or database command was run. Reports show recurring symptoms, not the most frequent errors in 2026. Some predate 2026; recent replies are not controlled reproductions. All four fixed strings were located. Arbitrary class names, absolute manifest paths, Target class [...] does not exist, full connection-refused/access-denied strings and their exact remedies remain unverified. Vite browser variables are a different job named in Not for.
Started from a post by @dajoeberlei, packaged by the editor. Original post