Closed Montrii closed 8 months ago
Same problem here. No way to dump a Nova request through Ray.
@Montrii @Vestibule Does this occur if you only install the ray package (and not laravel-ray)?
Dear contributor,
because this issue seems to be inactive for quite some time now, I've automatically closed it. If you feel this issue deserves some attention from my human colleagues feel free to reopen it.
This issue is still open. Until this day Ray refuses to output a NovaRequest object. One way to get around is is call NovaRequest->toArray(), but you obviously do not get the entire object.
Describe the bug When i try to "print" a Request (That can be any Request inherited class meaning:
NovaRequest, Request, ResourceCreateOrAttachRequest
etc.) object within Laravel Ray within Laravel Nova, ray does not showcase anything about that object. It does not printnull or undefined
, the object is initialised and does work normally. When i parse the object into variables usingparse_str
, i can then sorta view the object.Versions 2.7.5
You can use
composer show
to get the version numbers of:PHP version: 8.2 (Running Laravel app on Laravel Herd) Laravel version (if applicable): v10.22.0 Laravel Nova version (additional): 4.27.12
To Reproduce Steps to reproduce the behavior:
fields(NovaRequest $request)
methods directly or in any method that gets a Request instance passed (such as ->default(callback(ResourceCreateOrAttachRequest $request)
)Expected behavior Request object should be printed normally into ray without issues.
Desktop (please complete the following information):
Ventura 13.5
Additional context The issue seems to be related to the project? Using a different Laravel Nova Project with the following versions (Laravel: v.9.50.1, Nova: 4.21.0, spatie/ray: 1.36.0, spatie/laravel-ray: 1.32.1) causes no issue and returns expected behaviour. Printing any Request object in lets say a Controller via a Route works PERFECTLY fine. It only occurres in Laravel Nova Ressources.