You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The flat sidebar array was shown on every page regardless of section, and kept growing as Laravel-specific pages (Eloquent casting, Livewire, #[WhenLoaded]) got added under "Features" alongside framework-agnostic content — Laravel content ended up scattered across three different places (Features, Integrations, Attributes) with no single home.
Moved features/laravel.md, features/eloquent-casting.md, and features/livewire.md into docs/laravel/, added a top-level "Laravel" nav entry, and converted the sidebar config from a flat array into a path-keyed object so /laravel/* pages get their own compact 4-item sidebar (Overview, Eloquent Attribute Casting, Livewire Integration, #[WhenLoaded]) instead of the full ~40-entry list. #[WhenLoaded] is now an explicit sidebar entry in that section, not just a prose link buried in the fromModel() docs.
Fixed a resulting break in the custom Breadcrumb.vue component, which assumed theme.sidebar was always a flat array — it now resolves the current page's group via the same longest-prefix-match VitePress itself uses for multi-sidebars.
Folded the Octane/long-running-workers note from integrations/laravel.md into the new laravel/index.md, since that page's content is otherwise now fully covered by the consolidated section; integrations/laravel.md stays as the short per-framework quickstart entry (parallel to Plain PHP/Symfony/PSR-7) and points into /laravel/ for the full reference.
Updated every internal link that pointed at the old features/laravel.md path (guide/quick-start.md, attributes/when-loaded.md, integrations/laravel.md, and two published-docs URLs in CHANGELOG.md).
Copy file name to clipboardExpand all lines: docs/attributes/when-loaded.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# #[WhenLoaded]
2
2
3
-
Includes an Eloquent relation in `fromModel()` hydration only when that relation is actually loaded on the model. Requires [`HasLaravelIntegration`](../features/laravel.md).
3
+
Includes an Eloquent relation in `fromModel()` hydration only when that relation is actually loaded on the model. Requires [`HasLaravelIntegration`](../laravel/index.md).
$order = OrderData::from($orderModel); // same thing — from() understands models
40
40
```
41
41
42
-
See [Laravel Integration](../features/laravel.md) for the full trait reference and [Validation](../features/validation.md) for `#[Rules]`.
42
+
See the [Laravel section](../laravel/index.md) for the full trait reference, [Eloquent attribute casting](../laravel/eloquent-casting.md), and [Livewire integration](../laravel/livewire.md), and [Validation](../features/validation.md) for `#[Rules]`.
0 commit comments