Show us the view file and the layout file.
Sound to me like you need to tell the code where to render the content somehow.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
I have a weird issue where when I click on the home ("welcome") route, it loads the route in an iframe:
This doesn't occur in development, so I updated my ENV variables on the server to reflect local development: APP_ENV=local APP_DEBUG=true and have cleared the cache.
This is the Route:
Route::get('/', [ContestantController::class,'welcome'])->name('welcome');
and here is the Controller
public function welcome()
{
$contest_open = isContestOpen();
return Inertia::render( 'Welcome', [
'contest_open' => $contest_open
] );
}
I am open to suggestions as to how to fix this. Please let me know if you need additional information.
@chrismartinez99 Anytime. Yeah perhaps try implementing persistent layouts as explained in the docs. Or maybe you can install react dev tools to debug what is rendered
Please or to participate in this conversation.