Weave Code
Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Laravel Recursive Only

Laravel Recursive Only Laravel Package

naotake51/laravel-recursive-only

A Laravel package that brings recursive-only behavior to Eloquent, letting you load just a chosen whitelist of attributes and relations and have it applied consistently across nested relationship levels.

View on GitHub
Deep Wiki
Context7

Laravel Recursive Only provides a recursive version of Laravel’s only() helper for nested arrays. It walks each level of the data and keeps only the specified keys, preserving the original structure while removing everything else—useful for sanitizing nested request, configuration, or API payload data.

  • Recursively applies only() to nested arrays
  • Preserves nesting and matching values at every depth
  • Handles missing keys gracefully
  • Laravel-friendly helper/macro integration
  • Ideal for sanitizing nested request and response data
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
novasa/laravel-language-center
opencage/geocode
adolfoholzer/parameters
livenetworks/ln-starter
shitoudev/permissionmanager
johannesclimacus/laravel-tui
hocvt/seotools
vitalybaev/sypexgeo
amphibee/themosis-ignition
gito-me/fast-excel
frankyso/laravel-ipaymu
geolize-studio/laravel-chile
boomerangui/chat
jinas/dhivatar
store-doc/laravel-storage-driver
plus-it/laravel-translation-manager
diephp/perhaps
diephp/telegraph
osmaviation/spreadsheet
cgv/localized-resource