---
title: "Comment by Stanislav Ernst on \"Customizing error pages in Laravel with Vuejs and Inertiajs\" | Hashnode"
description: "I have encountered a difficulty where the shared data from the HandleInertiaRequests middleware is not being passed to the frontend. However, I need this data t"
url: "https://hashnode.com/posts/customizing-error-pages-in-laravel-with-vuejs-and-inertiajs/63ee1e79d0751683e935575f/comment/66963abe8ec1ba86b04a6936"
---

[Discussion](https://hashnode.com/posts/customizing-error-pages-in-laravel-with-vuejs-and-inertiajs/63ee1e79d0751683e935575f)

Comment [Customizing error pages in Laravel with Vuejs and Inertiajs](https://hashnode.com/posts/customizing-error-pages-in-laravel-with-vuejs-and-inertiajs/63ee1e79d0751683e935575f)

[Stanislav Ernst](https://hashnode.com/@timetodev)

[Jul 16, 2024](https://hashnode.com/posts/customizing-error-pages-in-laravel-with-vuejs-and-inertiajs/63ee1e79d0751683e935575f/comment/66963abe8ec1ba86b04a6936)

I have encountered a difficulty where the shared data from the HandleInertiaRequests middleware is not being passed to the frontend. However, I need this data to, for example, use the Team Switch function in AppLayout.vue. I use Jetstream. How can this problem be solved?
