If you are not connected, you can't have the name of the --- no --- connected user.
TypeError: null is not an object (evaluating 'e.$page.props.user.name')
What's the relationship with ziggy ?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
On loading a Ziggy / Jetstream route http://localhost:81/articles/8 - not logged in - frontend I get
TypeError: null is not an object (evaluating 'e.$page.props.user.name') —
and a white screen. Route is
Route::get('/articles/{article}', ArticleShowController::class)->name('articles.show');
in web.php and not in a group with middleware. But it seems Jetstream / Inertia is still blocking the loading for content .
Here is the controller
<?php
namespace App\Http\Controllers;
use App\Models\Article;
use Illuminate\Http\Request;
use Inertia\Inertia;
class ArticleShowController extends Controller
{
/**
* Handle the incoming request.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
*/
public function __invoke(Request $request, Article $article)
{
$article->load('user');
return Inertia::render('Article/Show', compact('article'));
}
}
How can I make that work?
Please or to participate in this conversation.