Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johnrudolphdrexler's avatar

500 error for missing layout file that I don't use

My project is working great locally, no issues. I deployed to Forge, and the login and landing page work. But when I visit other pages, I get a 500 error. The logs on Forge say:

[previous exception] [object] (InvalidArgumentException(code: 0): View [layouts.app] not found. at /home/forge/elephantintheroom.fun/vendor/laravel/framework/src/Illuminate/View/FileViewFinder.php:137)
[stacktrace]

What's weird is that my code does not reference layouts.app anywhere. Any ideas why my code looks for layouts.app on the production server, but not locally?

More context that could be helpful: I'm using Breeze for authentication, but I'm using my own layout file called app.blade.php. Also I am using Livewire components on every page (including the landing page, which is working fine). In my livewire.php config file, I manually overwrote the layout file to be 'layout' => 'components.app'

0 likes
2 replies
siangboon's avatar
Level 54

renamed your local file "layouts/app.blade.php" in your local to confirm that your code does not rely on this partial view file...

1 like

Please or to participate in this conversation.