Layouts
Page Layout
Layout for public-facing pages.
User
If you need to use User object in your components, you can get it quickly from layout.
You can see the real example in modules/Roadmap/resources/js/Pages/Show.vue
Usually you could get User object this way:
Global props
You can define global layout props and pass them to its slot.
This is example of default slot for PageLayout component:
You can also pass global properties from parent to children using provide
and inject
.