darkghosthunter/larahelp
LaraHelp is a Laravel package for adding a help center to your application. Organize help articles into categories, publish Markdown-based support content, and let users search documentation from a familiar Laravel setup.
config/app.php manually.shadow() and object_assign(), alongside the helpers that shipped before v3.2.0.php artisan tinker call (e.g. object_assign(new stdClass, ['a' => 1])) before wiring them into application code.object_assign() to merge validated request data onto a DTO/config object, and shadow() to produce a detached copy of a model or object for “preview” or “draft” flows without persisting changes.object_assign($dto, $request->validated()) keeps controller code free of repetitive property assignment, and pairs well with DTOs/readonly value objects.shadow($model) (or equivalent for your domain objects) lets you mutate an in-memory copy for diff previews, admin “what-if” screens, or staging an update before deciding to persist.object_assign() as PHP’s Object.assign: chain it to build layered configuration (defaults → user overrides) on plain objects instead of arrays.^3.2 so you pick up the new helpers without crossing a potential v4 boundary later.object_assign() almost certainly behaves like Object.assign — a shallow merge. Nested objects/arrays are replaced by reference, not deep-merged. Deep-copy the target first if you need nested isolation.shadow() aliasing: confirm whether shadow() is a shallow or deep clone. If shallow, mutating a nested object on the shadow still mutates the original — clone nested structures explicitly.object arguments and will raise TypeError on arrays or scalars; wrap or cast accordingly.object_assign() traditionally returns the target while mutating it. Don’t rely on it being a pure “return a new object” function unless the package docs say so.object_assign()/shadow() are “undefined function”, run php artisan package:discover and confirm the provider is cached correctly after deploys (config:clear, package:discover).composer update.How can I help you explore Laravel packages today?