-
Notifications
You must be signed in to change notification settings - Fork 24
Closed
Description
It would be handy to have an ability to specify the key transformer:
SharedData::keyTransformer(function ($key) {
return Str::camel($key);
});
So that:
share(['auth_user' => auth()->user()]);
Will be transformed into:
{
"authUser": {
"id": 1,
"firstName": "Ilya",
"lastName": "Sakovich"
}
}
Metadata
Metadata
Assignees
Labels
No labels